Skip to content

Commit

Permalink
test/dir: be more lenient for mac gh runner capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed May 26, 2024
1 parent a05b5e5 commit e562afc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/test/rename-file-accuracy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e562afc

Please sign in to comment.