mirror of https://github.com/jackc/pgx.git
adjust test
parent
169067a364
commit
532bf8f583
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue