From aa206bbef6a7db0126519a7b967ae8bceed9bbf1 Mon Sep 17 00:00:00 2001 From: ngavinsir Date: Sun, 12 May 2024 22:22:25 +0700 Subject: [PATCH] adjust test --- pgxpool/tracer_test.go | 2 -- 1 file changed, 2 deletions(-) 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()