Repository navigation
Commit 9a2a48c
committed
test(web): the late-boundary truncation spec waits for done, not 80 ms
hydrate() plus its flush took 12-218 ms locally on a busy machine, and
done lands two macrotasks after it. When the first of those ran past the
spec's fixed sleep(80), the timer fired first and done was still
undefined (2 of 3 isolated runs failed on next while another job loaded
the machine). Stalling the event loop for 100 ms right after scheduling
the wait reproduces it every time. The spec now polls done every 10 ms
for up to a second; a boundary that waits for a swap instead of the
rejected path still never reaches done and fails.1 parent 1dd4466 commit 9a2a48c
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments