From 4534394abc1a58d2b271386cf7a77bc8b75fd764 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sun, 10 Oct 2021 14:13:59 +1030 Subject: [PATCH] Lesson learned - read the test output carefully --- dau_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dau_test.go b/dau_test.go index 1f63e78..b32190a 100644 --- a/dau_test.go +++ b/dau_test.go @@ -56,6 +56,7 @@ func TestExclsion(t *testing.T) { t.Errorf("was not zero files (%d): %v", len(files), files) } // create a new file that would not hit exclusion, and two that would + time.Sleep(time.Second) os.Create(fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b.gif")) os.Create(fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b_thumb.gif")) os.Create(fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "tiny_b.jpg"))