From c43acaa7320b17d20265c3765f523de51f5c5de3 Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Fri, 18 Oct 2024 15:24:04 +0800 Subject: [PATCH] test: make TestLabelerRuleTTL stable (#8723) close tikv/pd#8687 Signed-off-by: okJiang <819421878@qq.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com> --- pkg/schedule/labeler/labeler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/schedule/labeler/labeler_test.go b/pkg/schedule/labeler/labeler_test.go index bd51bab7d83..34490a7249d 100644 --- a/pkg/schedule/labeler/labeler_test.go +++ b/pkg/schedule/labeler/labeler_test.go @@ -341,7 +341,7 @@ func TestKeyRange(t *testing.T) { func TestLabelerRuleTTL(t *testing.T) { re := require.New(t) store := endpoint.NewStorageEndpoint(kv.NewMemoryKV(), nil) - labeler, err := NewRegionLabeler(context.Background(), store, time.Millisecond*10) + labeler, err := NewRegionLabeler(context.Background(), store, time.Minute) re.NoError(err) rules := []*LabelRule{ {