diff options
Diffstat (limited to 'pkg/p9/transport_test.go')
-rw-r--r-- | pkg/p9/transport_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/p9/transport_test.go b/pkg/p9/transport_test.go index e3ee3e9bd..d6d4b6365 100644 --- a/pkg/p9/transport_test.go +++ b/pkg/p9/transport_test.go @@ -73,8 +73,8 @@ func TestRecvOverrun(t *testing.T) { t.Fatalf("send got err %v expected nil", err) } - if _, _, err := recv(server, maximumLength, messageByType); err != ErrNoValidMessage { - t.Fatalf("recv got err %v expected ErrNoValidMessage", err) + if _, _, err := recv(server, maximumLength, messageByType); err == nil { + t.Fatalf("recv got err %v expected ErrSocket{ErrNoValidMessage}", err) } } |