From 2a19741bf82118b75abc59d836e4a49a38fc7d3c Mon Sep 17 00:00:00 2001 From: kinggo Date: Sat, 27 Jan 2024 22:47:48 +0800 Subject: [PATCH] chore: modify unit test --- pkg/protocol/http1/server_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/protocol/http1/server_test.go b/pkg/protocol/http1/server_test.go index dc8790a97..2263ece77 100644 --- a/pkg/protocol/http1/server_test.go +++ b/pkg/protocol/http1/server_test.go @@ -70,6 +70,7 @@ func TestTraceEventCompleted(t *testing.T) { assert.False(t, traceInfo.Stats().GetEvent(stats.WriteStart).IsNil()) assert.False(t, traceInfo.Stats().GetEvent(stats.WriteFinish).IsNil()) assert.False(t, traceInfo.Stats().GetEvent(stats.HTTPFinish).IsNil()) + assert.Nil(t, traceInfo.Stats().Error()) } func TestTraceEventReadHeaderError(t *testing.T) {