Skip to content

Commit 987e2b1

Browse files
committed
parallelize TestValuerWithValueReceiverGivenNilValue
1 parent 5e17499 commit 987e2b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,9 +3202,9 @@ func TestRowsColumnTypes(t *testing.T) {
32023202
}
32033203

32043204
func TestValuerWithValueReceiverGivenNilValue(t *testing.T) {
3205-
runTests(t, dsn, func(dbt *DBTest) {
3206-
dbt.mustExec("CREATE TABLE test (value VARCHAR(255))")
3207-
dbt.db.Exec("INSERT INTO test VALUES (?)", (*testValuer)(nil))
3205+
runTestsParallel(t, dsn, func(dbt *DBTest, tbl string) {
3206+
dbt.mustExec("CREATE TABLE " + tbl + " (value VARCHAR(255))")
3207+
dbt.db.Exec("INSERT INTO "+tbl+" VALUES (?)", (*testValuer)(nil))
32083208
// This test will panic on the INSERT if ConvertValue() does not check for typed nil before calling Value()
32093209
})
32103210
}

0 commit comments

Comments
 (0)