From 5893752fcc8797674b6267d127113859ff439dd7 Mon Sep 17 00:00:00 2001 From: Satyam Sinha Date: Wed, 15 May 2019 13:53:17 -0700 Subject: [PATCH] Fixed: wait longer for filesystem. correct actual and expected params --- logutils/log_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logutils/log_test.go b/logutils/log_test.go index 3be3c51..b1626ff 100644 --- a/logutils/log_test.go +++ b/logutils/log_test.go @@ -233,7 +233,7 @@ func TestConfigureWithOptions(t *testing.T) { } // Wait for one second as file may not have been deleted. - time.Sleep(time.Second) + time.Sleep(5 * time.Second) files, err := filepath.Glob(tt.args.file + "*") if ok, message := assertions.So(err, ShouldBeNil); !ok { @@ -241,7 +241,7 @@ func TestConfigureWithOptions(t *testing.T) { } // logging to files tests wraparound. we should have - if ok, message := assertions.So(numFilesExpected, ShouldEqual, len(files)); !ok { + if ok, message := assertions.So(len(files), ShouldEqual, numFilesExpected); !ok { t.Fatalf("Failure in %s:\n%s", tt.name, message) }