From 36d92e57384afd8c338cd37820656f1a65674a69 Mon Sep 17 00:00:00 2001 From: darshanime Date: Mon, 13 May 2024 22:56:57 +0530 Subject: [PATCH] Fix the target count to 10k Signed-off-by: darshanime --- scrape/manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape/manager_test.go b/scrape/manager_test.go index 8852704346..85aaef7612 100644 --- a/scrape/manager_test.go +++ b/scrape/manager_test.go @@ -633,7 +633,7 @@ func BenchmarkManagerReload(b *testing.B) { activeTargets: map[uint64]*Target{}, } - for i := 0; i < b.N; i++ { + for i := 0; i < 10000; i++ { sp.activeTargets[uint64(i)] = &Target{ discoveredLabels: labels.FromStrings("__address__", fmt.Sprintf("foo-%d", i)), labels: labels.FromStrings("label_key", fmt.Sprintf("foo-%d", i)),