From ee9e6fd35f4a4c1afe8efc418a62c0d540a38e4f Mon Sep 17 00:00:00 2001 From: Fae Charlton Date: Thu, 6 Jun 2024 10:18:54 -0400 Subject: [PATCH] adjust flaky test --- filebeat/input/filestream/internal/task/group_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filebeat/input/filestream/internal/task/group_test.go b/filebeat/input/filestream/internal/task/group_test.go index 5ce15d455e3..30b9858a1de 100644 --- a/filebeat/input/filestream/internal/task/group_test.go +++ b/filebeat/input/filestream/internal/task/group_test.go @@ -195,8 +195,8 @@ func TestGroup_Go(t *testing.T) { }) t.Run("without limit, all goroutines run", func(t *testing.T) { - // 100 <= limit <= 100000 - limit := rand.Int63n(100000-100) + 100 + // 100 <= limit <= 10000 + limit := rand.Int63n(10000-100) + 100 t.Logf("running %d goroutines", limit) g := NewGroup(uint64(limit), time.Second, noopLogger{}, "")