Skip to content

Commit 4110a6e

Browse files
committed
Allow slow CI builds in watch recompilation test
Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent 088c358 commit 4110a6e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎rewatch/tests/watch/01-watch-recompile.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ success "Watcher Started"
2222
# Trigger a recompilation
2323
echo 'Console.log("added-by-test")' >> ./packages/main/src/Main.res
2424

25-
# Wait for the compiled JS to show up (can be slow in CI)
25+
# A cold build of the test repo can exceed 20 seconds on Intel macOS CI.
26+
# Poll so faster machines can continue as soon as the output is ready.
2627
target=./packages/main/src/Main.mjs
27-
if ! wait_for_file "$target" 40; then
28+
if ! wait_for_file "$target" 60; then
2829
error "Expected output not found: $target"
2930
ls -la ./packages/main/src || true
3031
tail -n 200 rewatch.log || true

0 commit comments

Comments
 (0)