From e90876925dee369ced77e3891fa8718ae4be3459 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 27 May 2021 11:27:58 +0200 Subject: [PATCH] Increase wait time to stabilize TestRotateDateSuffix (#25869) (#25872) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 9e5aafded2c49d19ee00a5d63b6ef5f6aad5ffaa) Co-authored-by: Noémi Ványi --- libbeat/common/file/rotator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/common/file/rotator_test.go b/libbeat/common/file/rotator_test.go index 71d8f81d422c..585d1690e788 100644 --- a/libbeat/common/file/rotator_test.go +++ b/libbeat/common/file/rotator_test.go @@ -216,7 +216,7 @@ func TestRotateDateSuffix(t *testing.T) { firstExpectedPattern := fmt.Sprintf("%s-%s.*", logname, time.Now().Format("20060102150405")) AssertDirContentsPattern(t, dir, firstExpectedPattern) - time.Sleep(1500 * time.Millisecond) + time.Sleep(2 * time.Second) secondExpectedPattern := fmt.Sprintf("%s-%s.*", logname, time.Now().Format("20060102150405")) Rotate(t, r) @@ -224,7 +224,7 @@ func TestRotateDateSuffix(t *testing.T) { AssertDirContentsPattern(t, dir, firstExpectedPattern, secondExpectedPattern) - time.Sleep(1500 * time.Millisecond) + time.Sleep(2 * time.Second) thirdExpectedPattern := fmt.Sprintf("%s-%s.*", logname, time.Now().Format("20060102150405")) Rotate(t, r)