()
| 57 | } |
| 58 | |
| 59 | func newTestMigrationContext() *base.MigrationContext { |
| 60 | migrationContext := base.NewMigrationContext() |
| 61 | migrationContext.ReplicaServerId = 99999 |
| 62 | migrationContext.HeartbeatIntervalMilliseconds = 100 |
| 63 | migrationContext.ThrottleHTTPIntervalMillis = 100 |
| 64 | migrationContext.ThrottleHTTPTimeoutMillis = 1000 |
| 65 | migrationContext.DatabaseName = testMysqlDatabase |
| 66 | migrationContext.OriginalTableName = testMysqlTableName |
| 67 | migrationContext.SkipPortValidation = true |
| 68 | migrationContext.PanicOnWarnings = true |
| 69 | migrationContext.AllowedRunningOnMaster = true |
| 70 | |
| 71 | migrationContext.ServeSocketFile = filepath.Join(os.TempDir(), "gh-ost.sock") |
| 72 | |
| 73 | return migrationContext |
| 74 | } |
searching dependent graphs…