mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
lib/fs: Prolong test timeout on darwin, hopefully fixing flakyness
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4576
This commit is contained in:
parent
b9ed6c4c2c
commit
c005b8dcb0
@ -218,7 +218,11 @@ func testScenario(t *testing.T, name string, testCase func(), expectedEvents []E
|
|||||||
|
|
||||||
go testWatchOutput(t, name, eventChan, expectedEvents, allowOthers, ctx, cancel)
|
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()
|
testCase()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user