diff --git a/tests/integrations/client/client_test.go b/tests/integrations/client/client_test.go index bcd9059682d..ba415a3aaaf 100644 --- a/tests/integrations/client/client_test.go +++ b/tests/integrations/client/client_test.go @@ -197,11 +197,11 @@ func TestLeaderTransferAndMoveCluster(t *testing.T) { oldServers := cluster.GetServers() oldLeaderName := cluster.WaitLeader() for range 3 { + time.Sleep(5 * time.Second) newPD, err := cluster.Join(ctx) re.NoError(err) re.NoError(newPD.Run()) oldLeaderName = cluster.WaitLeader() - time.Sleep(5 * time.Second) } // ABCDEF->DEF