From e562afc0566d61f05559d8af02e3009624e1032e Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 26 May 2024 15:41:05 -0400 Subject: [PATCH] test/dir: be more lenient for mac gh runner capabilities --- tool/test/rename-file-accuracy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/test/rename-file-accuracy b/tool/test/rename-file-accuracy index 855f6414..c9335045 100755 --- a/tool/test/rename-file-accuracy +++ b/tool/test/rename-file-accuracy @@ -40,7 +40,7 @@ ec=0 . "$(dirname "$0")/.ctx" actual=$( - watch-async "$testdir" -ms 500 > "$testdir.json" + watch-async "$testdir" -ms 800 > "$testdir.json" touch a mv a b wait # for the watcher @@ -93,12 +93,12 @@ ec=$((ec + $?)) . "$(dirname "$0")/.ctx" actual=$( - watch-async "$testdir" -ms 500 > "$testdir.json" + watch-async "$testdir" -ms 800 > "$testdir.json" touch a b # todo: # Otherwise, on Darwin, b will have a creation event # after the rename, and will miss the one above. - [ "$(uname -s)" = Darwin ] && sleep 0.1 + [ "$(uname -s)" = Darwin ] && sleep 0.2 portable-destructive-rename a b wait # for the watcher show-events "$testdir" | without-effect-time