Skip to content

Commit

Permalink
Wait for main action to complete before setting tablet to SERVING
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Feb 13, 2025
1 parent b3fd5ca commit 7135534
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,13 @@ func reparent(t *testing.T, clusterInstance *cluster.LocalProcessCluster, tablet

time.Sleep(5 * time.Second)

// Wait for the action triggering the VT15001 to be done before moving on
<-actionDone

tablets[0].VttabletProcess.ServingStatus = "SERVING"
err = tablets[0].VttabletProcess.Setup()
require.NoError(t, err)

// Wait for the action triggering the VT15001 to be done before moving on
<-actionDone
}

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

0 comments on commit 7135534

Please sign in to comment.