Skip to content

Commit

Permalink
fix test tablename that is too long for the new old format
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjanssen committed Jun 27, 2024
1 parent a7bf8ec commit 4fad849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/migration/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2624,7 +2624,7 @@ func TestResumeFromCheckpointE2EWithManualSentinel(t *testing.T) {
sentinelWaitLimit = 10 * time.Second
statusInterval = 500 * time.Millisecond

tableName := `resume_from_checkpoint_e2e_with_sentinel`
tableName := `resume_checkpoint_e2e_w_sentinel`
testutils.RunSQL(t, fmt.Sprintf(`DROP TABLE IF EXISTS %s, _%s_old, _%s_chkpnt, _%s_sentinel`, tableName, tableName, tableName, tableName))
table := fmt.Sprintf(`CREATE TABLE %s (
id int(11) NOT NULL AUTO_INCREMENT,
Expand Down Expand Up @@ -2663,7 +2663,7 @@ func TestResumeFromCheckpointE2EWithManualSentinel(t *testing.T) {

go func() {
err := runner.Run(ctx)
assert.Error(t, err) // it gets interrupted as soon as there is a checkpoint saved.
assert.ErrorContains(t, err, "context canceled") // it gets interrupted as soon as there is a checkpoint saved.
}()

// wait until a checkpoint is saved (which means copy is in progress)
Expand Down

0 comments on commit 4fad849

Please sign in to comment.