mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 17:58:02 +02:00
Add test
This commit is contained in:
parent
100e31276f
commit
12f472c58c
@ -11,6 +11,14 @@ import (
|
|||||||
"github.com/netbirdio/netbird/relay/server"
|
"github.com/netbirdio/netbird/relay/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestEmptyURL(t *testing.T) {
|
||||||
|
mgr := NewManager(context.Background(), "", "alice")
|
||||||
|
err := mgr.Serve()
|
||||||
|
if err == nil {
|
||||||
|
t.Errorf("expected error, got nil")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestForeignConn(t *testing.T) {
|
func TestForeignConn(t *testing.T) {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user