Skip to content

Commit

Permalink
Cleanup reference test
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Aug 21, 2024
1 parent 8ca8200 commit 6b7688a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions go/vt/vtctl/workflow/stream_migrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,24 +544,6 @@ func addReferenceWorkflow(t *testing.T, env *streamMigratorEnv, id int32, source
for _, resp := range workflowResponses {
env.tenv.tmc.AddVReplicationWorkflowsResponse(workflowKey, resp)
}
for _, id := range env.sourceTabletIds {
queries := []string{
fmt.Sprintf("select distinct vrepl_id from _vt.copy_state where vrepl_id in (%d)", id),
fmt.Sprintf("update _vt.vreplication set state='Stopped', message='for cutover' where id in (%d)", id),
}
for _, q := range queries {
env.tenv.tmc.expectVRQuery(id, q, &sqltypes.Result{})
}
}
for _, id := range env.targetTabletIds {
queries := []string{
fmt.Sprintf("delete from _vt.vreplication where db_name='vt_%s' and workflow in ('%s')",
env.tenv.targetKeyspace.KeyspaceName, wfName),
}
for _, q := range queries {
env.tenv.tmc.expectVRQuery(id, q, &sqltypes.Result{})
}
}
}

func TestBuildStreamMigratorOneMaterialize(t *testing.T) {
Expand Down

0 comments on commit 6b7688a

Please sign in to comment.