From a69013679ad26e66adf5a584c012fe46a19edd38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Tue, 26 Nov 2024 10:25:37 +0800 Subject: [PATCH] Update instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go Co-authored-by: Tyler Yahn --- .../github.com/gin-gonic/gin/otelgin/test/gintrace_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go b/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go index ad416a240dd..b480f7db9d8 100644 --- a/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go +++ b/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go @@ -198,7 +198,7 @@ func TestError(t *testing.T) { // verify the error events events := span.Events() - assert.Len(t, events, 2) + require.Len(t, events, 2) assert.Equal(t, "exception", events[0].Name) assert.Contains(t, events[0].Attributes, attribute.String("exception.type", "*errors.errorString")) assert.Contains(t, events[0].Attributes, attribute.String("exception.message", "oh no one"))