Skip to content

Commit

Permalink
fix build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Oct 20, 2023
1 parent d5312ad commit 9a5db59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions base/commands/migration/cancel_it_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build migration
//go:build std || migration

package migration_test

Expand Down Expand Up @@ -42,7 +42,7 @@ func noMigrationsCancelTest(t *testing.T) {
tcx.CLC().Execute(ctx, "cancel")
})
wg.Wait()
tcx.AssertStdoutContains("there are no migrations are in progress on migration cluster")
tcx.AssertStderrContains("there are no migrations in progress")
})
}

Expand Down
4 changes: 2 additions & 2 deletions base/commands/migration/cancel_stages.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build migration
//go:build std || migration

package migration

Expand Down Expand Up @@ -57,7 +57,7 @@ func (st *CancelStages) connectStage(ec plug.ExecContext) func(context.Context,
return nil, err
}
if len(all) == 0 {
return nil, fmt.Errorf("there are no migrations are in progress on migration cluster")
return nil, fmt.Errorf("there are no migrations in progress")
}
var mip MigrationInProgress
m := all[0].(serialization.JSON)
Expand Down
4 changes: 1 addition & 3 deletions base/commands/migration/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ package migration

const (
StartQueueName = "__datamigration_start_queue"
StatusMapEntryName = "status"
StatusMapName = "__datamigration_migrations"
UpdateTopicPrefix = "__datamigration_updates_"
DebugLogsListPrefix = "__datamigration_debug_logs_"
MigrationsInProgressList = "__datamigrations_in_progress"
startQueueName = "__datamigration_start_queue"
statusMapEntryName = "status"
CancelQueue = "__datamigration_cancel_queue"
argDMTConfig = "dmtConfig"
argTitleDMTConfig = "DMT configuration"
)
Expand Down
2 changes: 1 addition & 1 deletion base/commands/migration/migration_cancel.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build migration
//go:build std || migration

package migration

Expand Down

0 comments on commit 9a5db59

Please sign in to comment.