This commit is contained in:
John Guo 2021-05-17 20:25:00 +08:00
parent e5734425ba
commit b84ca9cc13

View File

@ -212,8 +212,9 @@ func TestWatcher_WatchFolderWithoutRecursively(t *testing.T) {
time.Sleep(time.Millisecond * 100)
t.Assert(array.Len(), 0)
err = gfile.PutContents(gfile.Join(dirPath, "1"), "1")
f, err := gfile.Create(gfile.Join(dirPath, "1"))
t.AssertNil(err)
t.AssertNil(f.Close())
time.Sleep(time.Millisecond * 100)
t.Assert(array.Len(), 1)
})