Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <[email protected]>
  • Loading branch information
rohit-nayak-ps committed Jan 5, 2021
1 parent afad5c9 commit b1024ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions go/test/endtoend/vreplication/resharding_workflows_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ func testReshardV2Workflow(t *testing.T) {

createAdditionalCustomerShards(t, "-40,40-80,80-c0,c0-")
reshard2Start(t, "-80,80-", "-40,40-80,80-c0,c0-")

checkStates(t, wrangler.WorkflowStateNotStarted, wrangler.WorkflowStateNotSwitched)
if !strings.Contains(lastOutput, "Workflow started successfully") {
t.Fail()
}
validateReadsRouteToSource(t, "replica")
validateWritesRouteToSource(t)

Expand All @@ -258,7 +259,9 @@ func testMoveTablesV2Workflow(t *testing.T) {
// test basic forward and reverse flows
setupCustomerKeyspace(t)
moveTables2Start(t, "customer")
checkStates(t, wrangler.WorkflowStateNotStarted, wrangler.WorkflowStateNotSwitched)
if !strings.Contains(lastOutput, "Workflow started successfully") {
t.Fail()
}
validateReadsRouteToSource(t, "replica")
validateWritesRouteToSource(t)

Expand Down

0 comments on commit b1024ef

Please sign in to comment.