adjust test

pull/2017/head
ngavinsir 2024-05-12 22:22:25 +07:00 committed by Jack Christensen
parent 169067a364
commit 532bf8f583
1 changed files with 0 additions and 2 deletions

View File

@ -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()