(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestDBPool(t *testing.T) { |
| 12 | t.Parallel() |
| 13 | |
| 14 | ctx := context.Background() |
| 15 | |
| 16 | pool1 := DBPool(ctx, t) |
| 17 | _, err := pool1.Exec(ctx, "SELECT 1") |
| 18 | require.NoError(t, err) |
| 19 | |
| 20 | // Both pools should be exactly the same object. |
| 21 | pool2 := DBPool(ctx, t) |
| 22 | require.Equal(t, pool1, pool2) |
| 23 | } |
| 24 | |
| 25 | func TestWaitOrTimeout(t *testing.T) { |
| 26 | t.Parallel() |