Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngavinsir authored and jackc committed May 15, 2024
1 parent 169067a commit 532bf8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pgxpool/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 532bf8f

Please sign in to comment.