mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-22 04:01:52 +02:00
Revert error handling behaviour in test
This commit is contained in:
@@ -390,18 +390,13 @@ func TestBindReconnect(t *testing.T) {
|
|||||||
|
|
||||||
chAlice, err := clientAlice.OpenConn(ctx, "bob")
|
chAlice, err := clientAlice.OpenConn(ctx, "bob")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to bind channel: %s", err)
|
t.Fatalf("failed to bind channel: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
testString := "hello alice, I am bob"
|
testString := "hello alice, I am bob"
|
||||||
_, err = chBob.Write([]byte(testString))
|
_, err = chBob.Write([]byte(testString))
|
||||||
if err == nil {
|
|
||||||
t.Errorf("expected error when writing to channel, got nil")
|
|
||||||
}
|
|
||||||
|
|
||||||
chBob, err = clientBob.OpenConn(ctx, "alice")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to bind channel: %s", err)
|
t.Errorf("expected error when writing to channel, got nil")
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = chBob.Write([]byte(testString))
|
_, err = chBob.Write([]byte(testString))
|
||||||
|
Reference in New Issue
Block a user