]> go.fuhry.dev Git - fsnotify.git/commitdiff
Skip TestWatchStress in the CI
authorMartin Tournoij <martin@arp242.net>
Thu, 13 Oct 2022 18:27:27 +0000 (20:27 +0200)
committerMartin Tournoij <martin@arp242.net>
Thu, 13 Oct 2022 18:27:27 +0000 (20:27 +0200)
It fails too often, and it's not *that* important of a test.

fsnotify_test.go

index ffec49a8dcb3b4739ede11711984833f7b00fa59..54e446dcb5f0eb6e3bcd15614ea5b1c27652913a 100644 (file)
@@ -1064,6 +1064,10 @@ func isKqueue() bool {
 
 // Verify the watcher can keep up with file creations/deletions when under load.
 func TestWatchStress(t *testing.T) {
+       if isCI() {
+               t.Skip("fails too often on the CI")
+       }
+
        // On NetBSD ioutil.ReadDir in sendDirectoryChangeEvents() returns EINVAL
        // ~80% of the time:
        //