From 7fd4169fe8e1213e79f746a2b8fd1b7815d7b294 Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Mon, 15 Jul 2024 17:05:10 +0800 Subject: [PATCH] enlarge timeout Signed-off-by: okJiang <819421878@qq.com> --- tests/integrations/realcluster/scheduler_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) }