p2p/simulations/adapters: fix error messages in TestTCPPipeBidirections (#29207)

This commit is contained in:
Kero 2024-03-11 03:01:26 +08:00 committed by GitHub
parent e31709db65
commit 3dc549b3d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ func TestTCPPipeBidirections(t *testing.T) {
}
if !bytes.Equal(expected, out) {
t.Fatalf("expected %#v, got %#v", out, expected)
t.Fatalf("expected %#v, got %#v", expected, out)
} else {
msg := []byte(fmt.Sprintf("pong %02d", i))
if _, err := c2.Write(msg); err != nil {
@ -94,7 +94,7 @@ func TestTCPPipeBidirections(t *testing.T) {
t.Fatal(err)
}
if !bytes.Equal(expected, out) {
t.Fatalf("expected %#v, got %#v", out, expected)
t.Fatalf("expected %#v, got %#v", expected, out)
}
}
}