diff --git a/contrib/gofiber/fiber.v2/fiber_test.go b/contrib/gofiber/fiber.v2/fiber_test.go index 05a9eb8bf4..be5c9bdd53 100644 --- a/contrib/gofiber/fiber.v2/fiber_test.go +++ b/contrib/gofiber/fiber.v2/fiber_test.go @@ -198,8 +198,9 @@ func TestUserContext(t *testing.T) { assert.NotEmpty(c.UserContext()) // checks that the user context still has the information provided before using the middleware - _, ok := c.UserContext().Value(fooKey).(string) + foo, ok := c.UserContext().Value(fooKey).(string) assert.True(ok) + assert.Equal(foo, "bar") span, _ := tracer.StartSpanFromContext(c.UserContext(), "http.request") defer span.Finish()