(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestPoolAcquireAndConnRelease(t *testing.T) { |
| 113 | t.Parallel() |
| 114 | |
| 115 | ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) |
| 116 | defer cancel() |
| 117 | |
| 118 | pool, err := pgxpool.New(ctx, os.Getenv("PGX_TEST_DATABASE")) |
| 119 | require.NoError(t, err) |
| 120 | defer pool.Close() |
| 121 | |
| 122 | c, err := pool.Acquire(ctx) |
| 123 | require.NoError(t, err) |
| 124 | c.Release() |
| 125 | } |
| 126 | |
| 127 | func TestPoolAcquireAndConnHijack(t *testing.T) { |
| 128 | t.Parallel() |