From e7a6e8467754b0fa53016cdcda6badb35ad79327 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 20 Jul 2023 22:53:17 +0800 Subject: [PATCH] chore: assert with specific error --- gnet_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")