From 23c9bc0f0f151f7d7150e52c91e18ab1291f88e5 Mon Sep 17 00:00:00 2001 From: Flc Date: Tue, 26 Nov 2024 09:23:02 +0800 Subject: [PATCH] fix(otelecho): Upgrade assertions to requirements in echo_test.go for stricter validation --- .../github.com/labstack/echo/otelecho/test/echo_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/github.com/labstack/echo/otelecho/test/echo_test.go b/instrumentation/github.com/labstack/echo/otelecho/test/echo_test.go index 4b767e13f94..bc399f62834 100644 --- a/instrumentation/github.com/labstack/echo/otelecho/test/echo_test.go +++ b/instrumentation/github.com/labstack/echo/otelecho/test/echo_test.go @@ -249,7 +249,7 @@ func TestSpanNameFormatter(t *testing.T) { router.ServeHTTP(w, r) spans := imsb.GetSpans() - assert.Len(t, spans, 1) + require.Len(t, spans, 1) assert.Equal(t, test.expected, spans[0].Name) }) } @@ -269,7 +269,7 @@ func TestSpanNameFormatter(t *testing.T) { router.ServeHTTP(w, r) spans := imsb.GetSpans() - assert.Len(t, spans, 1) + require.Len(t, spans, 1) assert.Equal(t, "GET /user/:id", spans[0].Name) imsb.Reset()