Avoid nil pointer exception in test in case of err

This commit is contained in:
Zoltán Papp 2024-06-03 21:36:46 +02:00
parent 2b369cd28f
commit 0556dc1860

View File

@ -471,7 +471,7 @@ func TestCloseRelayConn(t *testing.T) {
clientAlice := NewClient(ctx, addr, "alice")
err := clientAlice.Connect()
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")