File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3225,18 +3225,18 @@ func TestRawBytesAreNotModified(t *testing.T) {
3225
3225
strings .Repeat (strings .ToUpper (blob ), blobSize / len (blob )),
3226
3226
}
3227
3227
3228
- runTests (t , dsn , func (dbt * DBTest ) {
3229
- dbt .mustExec ("CREATE TABLE test (id int, value BLOB) CHARACTER SET utf8" )
3228
+ runTestsParallel (t , dsn , func (dbt * DBTest , tbl string ) {
3229
+ dbt .mustExec ("CREATE TABLE " + tbl + " (id int, value BLOB) CHARACTER SET utf8" )
3230
3230
for i := 0 ; i < insertRows ; i ++ {
3231
- dbt .mustExec ("INSERT INTO test VALUES (?, ?)" , i + 1 , sqlBlobs [i & 1 ])
3231
+ dbt .mustExec ("INSERT INTO " + tbl + " VALUES (?, ?)" , i + 1 , sqlBlobs [i & 1 ])
3232
3232
}
3233
3233
3234
3234
for i := 0 ; i < contextRaceIterations ; i ++ {
3235
3235
func () {
3236
3236
ctx , cancel := context .WithCancel (context .Background ())
3237
3237
defer cancel ()
3238
3238
3239
- rows , err := dbt .db .QueryContext (ctx , `SELECT id, value FROM test` )
3239
+ rows , err := dbt .db .QueryContext (ctx , `SELECT id, value FROM ` + tbl )
3240
3240
if err != nil {
3241
3241
dbt .Fatal (err )
3242
3242
}
You can’t perform that action at this time.
0 commit comments