Add debugging to work out why this is failing on github

This commit is contained in:
Justin Hawkins 2021-10-10 13:59:18 +10:30
parent 4665380d15
commit c9f8ad60c3

View File

@ -31,7 +31,7 @@ func TestWatchNewFiles(t *testing.T) {
os.Create(fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b.gif")) os.Create(fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b.gif"))
files = w.ProcessNewFiles() files = w.ProcessNewFiles()
if len(files) != 1 { if len(files) != 1 {
t.Error("was not one file") t.Errorf("was not one file - got: %v", files)
} }
if files[0] != fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b.gif") { if files[0] != fmt.Sprintf("%s%c%s", dir, os.PathSeparator, "b.gif") {
t.Error("wrong file") t.Error("wrong file")