@@ -305,7 +305,10 @@ func (suite *MigratorTestSuite) TeardownSuite() {
305305func (suite * MigratorTestSuite ) SetupTest () {
306306 ctx := context .Background ()
307307
308- _ , err := suite .db .ExecContext (ctx , "CREATE DATABASE test" )
308+ _ , err := suite .db .ExecContext (ctx , "SET @@GLOBAL.binlog_transaction_dependency_tracking = WRITESET" )
309+ suite .Require ().NoError (err )
310+
311+ _ , err = suite .db .ExecContext (ctx , "CREATE DATABASE test" )
309312 suite .Require ().NoError (err )
310313}
311314
@@ -322,6 +325,9 @@ func (suite *MigratorTestSuite) TestFoo() {
322325 _ , err := suite .db .ExecContext (ctx , "CREATE TABLE test.testing (id INT PRIMARY KEY, name VARCHAR(64))" )
323326 suite .Require ().NoError (err )
324327
328+ _ , err = suite .db .ExecContext (ctx , "INSERT INTO test.testing(id, name) VALUES (1, 'mona')" )
329+ suite .Require ().NoError (err )
330+
325331 connectionConfig , err := GetConnectionConfig (ctx , suite .mysqlContainer )
326332 suite .Require ().NoError (err )
327333
@@ -330,18 +336,20 @@ func (suite *MigratorTestSuite) TestFoo() {
330336 migrationContext .ApplierConnectionConfig = connectionConfig
331337 migrationContext .InspectorConnectionConfig = connectionConfig
332338 migrationContext .DatabaseName = "test"
333- migrationContext .SkipPortValidation = true
334339 migrationContext .OriginalTableName = "testing"
335340 migrationContext .SetConnectionConfig ("innodb" )
336- migrationContext .AlterStatementOptions = "ADD COLUMN foobar varchar(255), ENGINE=InnoDB "
341+ migrationContext .AlterStatementOptions = "ADD COLUMN foobar varchar(255)"
337342 migrationContext .ReplicaServerId = 99999
338343 migrationContext .HeartbeatIntervalMilliseconds = 100
339344 migrationContext .ThrottleHTTPIntervalMillis = 100
340- migrationContext .ThrottleHTTPTimeoutMillis = 1000
345+ migrationContext .DMLBatchSize = 10
346+ migrationContext .NumWorkers = 4
347+ migrationContext .SkipPortValidation = true
341348
342349 //nolint:dogsled
343350 _ , filename , _ , _ := runtime .Caller (0 )
344351 migrationContext .ServeSocketFile = filepath .Join (filepath .Dir (filename ), "../../tmp/gh-ost.sock" )
352+ _ = os .Remove (filename )
345353
346354 migrator := NewMigrator (migrationContext , "0.0.0" )
347355
0 commit comments