Skip to content

Commit a932883

Browse files
committed
parallelize TestNULL
1 parent 082c897 commit a932883

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
@@ -1047,7 +1047,7 @@ func TestTimestampMicros(t *testing.T) {
10471047
}
10481048

10491049
func TestNULL(t *testing.T) {
1050-
runTests(t, dsn, func(dbt *DBTest) {
1050+
runTestsParallel(t, dsn, func(dbt *DBTest, tbl string) {
10511051
nullStmt, err := dbt.db.Prepare("SELECT NULL")
10521052
if err != nil {
10531053
dbt.Fatal(err)
@@ -1179,12 +1179,12 @@ func TestNULL(t *testing.T) {
11791179
}
11801180

11811181
// Insert NULL
1182-
dbt.mustExec("CREATE TABLE test (dummmy1 int, value int, dummy2 int)")
1182+
dbt.mustExec("CREATE TABLE " + tbl + " (dummmy1 int, value int, dummy2 int)")
11831183

1184-
dbt.mustExec("INSERT INTO test VALUES (?, ?, ?)", 1, nil, 2)
1184+
dbt.mustExec("INSERT INTO "+tbl+" VALUES (?, ?, ?)", 1, nil, 2)
11851185

11861186
var out interface{}
1187-
rows := dbt.mustQuery("SELECT * FROM test")
1187+
rows := dbt.mustQuery("SELECT * FROM " + tbl)
11881188
defer rows.Close()
11891189
if rows.Next() {
11901190
rows.Scan(&out)

0 commit comments

Comments
 (0)