Skip to content

Commit f69130a

Browse files
committed
parallelize TestContextCancelQueryRow
1 parent 3deb8b4 commit f69130a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2719,12 +2719,12 @@ func TestContextCancelQuery(t *testing.T) {
27192719
}
27202720

27212721
func TestContextCancelQueryRow(t *testing.T) {
2722-
runTests(t, dsn, func(dbt *DBTest) {
2723-
dbt.mustExec("CREATE TABLE test (v INTEGER)")
2724-
dbt.mustExec("INSERT INTO test VALUES (1), (2), (3)")
2722+
runTestsParallel(t, dsn, func(dbt *DBTest, tbl string) {
2723+
dbt.mustExec("CREATE TABLE " + tbl + " (v INTEGER)")
2724+
dbt.mustExec("INSERT INTO " + tbl + " VALUES (1), (2), (3)")
27252725
ctx, cancel := context.WithCancel(context.Background())
27262726

2727-
rows, err := dbt.db.QueryContext(ctx, "SELECT v FROM test")
2727+
rows, err := dbt.db.QueryContext(ctx, "SELECT v FROM "+tbl)
27282728
if err != nil {
27292729
dbt.Fatalf("%s", err.Error())
27302730
}

0 commit comments

Comments
 (0)