Skip to content

Commit 32f6f32

Browse files
Fix rewatch test
1 parent 2c632ca commit 32f6f32

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rewatch/tests/watch/06-watch-missing-source-folder.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ fi
5454
# where the config change triggers a full rebuild that runs concurrently
5555
# with the subsequent `rewatch build`.
5656
exit_watcher
57-
sleep 1
57+
if ! wait_for_file_gone "lib/rescript.lock" 20; then
58+
error "Watcher did not stop in time"
59+
git checkout "$DEP01_CONFIG"
60+
exit 1
61+
fi
5862

5963
# Restore dep01's rescript.json
6064
git checkout "$DEP01_CONFIG"

0 commit comments

Comments
 (0)