diff --git a/gnet_test.go b/gnet_test.go index 91391fa65..abf5ee569 100644 --- a/gnet_test.go +++ b/gnet_test.go @@ -1160,7 +1160,7 @@ func TestMultiInstLoggerRace(t *testing.T) { return err }) - assert.Error(t, g.Wait()) + assert.ErrorIs(t, g.Wait(), gerr.ErrUnsupportedProtocol) } var errIncompletePacket = errors.New("incomplete packet")