mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 18:22:37 +02:00
Avoid nil pointer exception in test in case of err
This commit is contained in:
parent
2b369cd28f
commit
0556dc1860
@ -471,7 +471,7 @@ func TestCloseRelayConn(t *testing.T) {
|
|||||||
clientAlice := NewClient(ctx, addr, "alice")
|
clientAlice := NewClient(ctx, addr, "alice")
|
||||||
err := clientAlice.Connect()
|
err := clientAlice.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to connect to server: %s", err)
|
t.Fatalf("failed to connect to server: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := clientAlice.OpenConn("bob")
|
conn, err := clientAlice.OpenConn("bob")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user