Skip to content

Commit

Permalink
Fixed: wait longer for filesystem. correct actual and expected params
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyam Sinha committed May 15, 2019
1 parent 971bc2f commit 5893752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logutils/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ 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 {
t.Fatalf("Failure in %s:\n%s", tt.name, message)
}

// 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)
}

Expand Down

0 comments on commit 5893752

Please sign in to comment.