From 713553433c4b24360d11493903e946c8befe9a2a Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Thu, 13 Feb 2025 16:40:32 -0600 Subject: [PATCH] Wait for main action to complete before setting tablet to SERVING Signed-off-by: Florent Poinsard --- .../endtoend/reparent/newfeaturetest/reparent_in_tx_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/test/endtoend/reparent/newfeaturetest/reparent_in_tx_test.go b/go/test/endtoend/reparent/newfeaturetest/reparent_in_tx_test.go index c41c7437374..d0777c93002 100644 --- a/go/test/endtoend/reparent/newfeaturetest/reparent_in_tx_test.go +++ b/go/test/endtoend/reparent/newfeaturetest/reparent_in_tx_test.go @@ -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) {