diff --git a/lib/fs/basicfs_watch_test.go b/lib/fs/basicfs_watch_test.go index 1c23d8cbb..a19e914f0 100644 --- a/lib/fs/basicfs_watch_test.go +++ b/lib/fs/basicfs_watch_test.go @@ -218,7 +218,11 @@ func testScenario(t *testing.T, name string, testCase func(), expectedEvents []E go testWatchOutput(t, name, eventChan, expectedEvents, allowOthers, ctx, cancel) - timeout := time.NewTimer(2 * time.Second) + timeoutDuration := 2 * time.Second + if runtime.GOOS == "darwin" { + timeoutDuration *= 2 + } + timeout := time.NewTimer(timeoutDuration) testCase()