Lesson learned - read the test output carefully

This commit is contained in:
Justin Hawkins 2021-10-10 14:13:59 +10:30
parent 4c963ba559
commit 4534394abc

View File

@ -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"))