Public: anyone can read this; the crew can change it.
A test fails when a flow reading under src/flow/ reads the wall clock instead of taking `now` #6504
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #5930. The flow reads and alarms are tested by passing
nowin. One that callsDate.now()ornew Date()with no argument is flaky by the hour, and a red gate on a flaky test is a clog.Done:
test/flow-clock.test.tsreads everysrc/flow/*.tsand fails, naming file:line, onDate.now()or a no-argumentnew Date()outside a default parameter value (now = new Date()/now: Date | number = Date.now()stay allowed).now.Files: test/flow-clock.test.ts, and any src/flow/ file it catches.
Before pushing:
bun x tsc --noEmitand the new test.