You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: sequence the bun script's fetches so the ordering is observable
The script raced its two fetches, and /__webjs/ready answers immediately
(it reports unready without blocking on the analysis), so the pair passed
whether or not the hoist exists: the ready fetched at t=0 was 503 either
way. Proven vacuous by running it against a server without the hoist,
where it printed OK.
Sequenced, the timeline discriminates. With the hoist the css returns in
milliseconds, long before the fixture middleware's sleep releases the
analysis, so the ready fetched after it is still 503. Without the hoist
the css itself blocks on ensureReady, so by the time it returns the
analysis is done and the same fetch reads 200. Verified in both
directions: OK against this branch's server on node and bun, and the
assertion fails against main's server. The middleware sleep widened from
1500ms to 3000ms so the discrimination has margin over css fetch latency.
0 commit comments