Skip to content

Commit

Permalink
fix(otelecho): Upgrade assertions to requirements in echo_test.go for…
Browse files Browse the repository at this point in the history
… stricter validation
  • Loading branch information
flc1125 committed Nov 26, 2024
1 parent 3ee4cc8 commit 23c9bc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand All @@ -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()
Expand Down

0 comments on commit 23c9bc0

Please sign in to comment.