@@ -2892,8 +2892,8 @@ func TestContextCancelBegin(t *testing.T) {
2892
2892
}
2893
2893
2894
2894
func TestContextBeginIsolationLevel (t * testing.T ) {
2895
- runTests (t , dsn , func (dbt * DBTest ) {
2896
- dbt .mustExec ("CREATE TABLE test (v INTEGER)" )
2895
+ runTestsParallel (t , dsn , func (dbt * DBTest , tbl string ) {
2896
+ dbt .mustExec ("CREATE TABLE " + tbl + " (v INTEGER)" )
2897
2897
ctx , cancel := context .WithCancel (context .Background ())
2898
2898
defer cancel ()
2899
2899
@@ -2911,13 +2911,13 @@ func TestContextBeginIsolationLevel(t *testing.T) {
2911
2911
dbt .Fatal (err )
2912
2912
}
2913
2913
2914
- _ , err = tx1 .ExecContext (ctx , "INSERT INTO test VALUES (1)" )
2914
+ _ , err = tx1 .ExecContext (ctx , "INSERT INTO " + tbl + " VALUES (1)" )
2915
2915
if err != nil {
2916
2916
dbt .Fatal (err )
2917
2917
}
2918
2918
2919
2919
var v int
2920
- row := tx2 .QueryRowContext (ctx , "SELECT COUNT(*) FROM test" )
2920
+ row := tx2 .QueryRowContext (ctx , "SELECT COUNT(*) FROM " + tbl )
2921
2921
if err := row .Scan (& v ); err != nil {
2922
2922
dbt .Fatal (err )
2923
2923
}
@@ -2931,7 +2931,7 @@ func TestContextBeginIsolationLevel(t *testing.T) {
2931
2931
dbt .Fatal (err )
2932
2932
}
2933
2933
2934
- row = tx2 .QueryRowContext (ctx , "SELECT COUNT(*) FROM test" )
2934
+ row = tx2 .QueryRowContext (ctx , "SELECT COUNT(*) FROM " + tbl )
2935
2935
if err := row .Scan (& v ); err != nil {
2936
2936
dbt .Fatal (err )
2937
2937
}
0 commit comments