diff --git a/pgxpool/tracer_test.go b/pgxpool/tracer_test.go index 46e3cd1f2..10724d94c 100644 --- a/pgxpool/tracer_test.go +++ b/pgxpool/tracer_test.go @@ -121,10 +121,8 @@ func TestTraceRelease(t *testing.T) { traceReleaseCalled = true require.NotNil(t, pool) require.NotNil(t, data.Conn) - require.Equal(t, "foo", ctx.Value(ctxKey("fromAcquire"))) } - ctx = context.WithValue(ctx, ctxKey("fromAcquire"), "foo") c, err := pool.Acquire(ctx) require.NoError(t, err) c.Release()