diff --git a/tests/integrations/realcluster/scheduler_test.go b/tests/integrations/realcluster/scheduler_test.go index 3b75e6c8c88..9d32f2663e7 100644 --- a/tests/integrations/realcluster/scheduler_test.go +++ b/tests/integrations/realcluster/scheduler_test.go @@ -111,7 +111,7 @@ func TestRegionLabelDenyScheduler(t *testing.T) { } } return true - }, testutil.WithWaitFor(time.Minute)) + }, testutil.WithWaitFor(90*time.Second)) // disable schedule for region1 labelRule := &pd.LabelRule{ @@ -149,7 +149,7 @@ func TestRegionLabelDenyScheduler(t *testing.T) { } } return true - }, testutil.WithWaitFor(time.Minute)) + }, testutil.WithWaitFor(90*time.Second)) re.NoError(pdHTTPCli.DeleteScheduler(ctx, schedulers.EvictLeaderName)) re.NoError(pdHTTPCli.CreateScheduler(ctx, schedulers.GrantLeaderName, uint64(region1.Leader.StoreID))) @@ -168,7 +168,7 @@ func TestRegionLabelDenyScheduler(t *testing.T) { } } return true - }, testutil.WithWaitFor(time.Minute)) + }, testutil.WithWaitFor(90*time.Second)) pdHTTPCli.PatchRegionLabelRules(ctx, &pd.LabelRulePatch{DeleteRules: []string{labelRule.ID}}) labelRules, err = pdHTTPCli.GetAllRegionLabelRules(ctx) @@ -184,5 +184,5 @@ func TestRegionLabelDenyScheduler(t *testing.T) { } } return true - }, testutil.WithWaitFor(time.Minute)) + }, testutil.WithWaitFor(90*time.Second)) }