From d39a24bd7bc3bc9c72d3f7fc0e894017916cee69 Mon Sep 17 00:00:00 2001 From: Tom McPhail Date: Mon, 9 Oct 2023 21:11:54 +1000 Subject: [PATCH] Adjust test waits --- logmanager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logmanager_test.go b/logmanager_test.go index a330545..3f925dd 100644 --- a/logmanager_test.go +++ b/logmanager_test.go @@ -119,7 +119,7 @@ func (s *LogManagerTestSuite) TestRemoveLogFile() { err = os.Remove(of.Name()) s.NoError(err) - time.Sleep(1 * time.Second) + time.Sleep(100 * time.Millisecond) select { case err := <-errorChan: s.Equal(fmt.Sprintf("state: File removed msg: file removed, waiting for creation: %s", of.Name()), err.Error())