]> go.fuhry.dev Git - fsnotify.git/commitdiff
Increase wait on TestClose()
authorMartin Tournoij <martin@arp242.net>
Sat, 14 Jan 2023 21:09:21 +0000 (22:09 +0100)
committerMartin Tournoij <martin@arp242.net>
Sat, 14 Jan 2023 21:09:21 +0000 (22:09 +0100)
Should hopefully help with:
https://github.com/fsnotify/fsnotify/issues/538#issuecomment-1318173851

fsnotify_test.go

index e57f229b148e3bc4a6ecd574cd865676f15d703f..c88d39f9ceab50f8dbe47114aaf76da4bda4e997 100644 (file)
@@ -968,7 +968,7 @@ func TestClose(t *testing.T) {
                // which may take a little bit.
                switch runtime.GOOS {
                case "freebsd", "openbsd", "netbsd", "dragonfly", "darwin", "solaris", "illumos":
-                       time.Sleep(5 * time.Millisecond)
+                       time.Sleep(50 * time.Millisecond)
                }
 
                select {