TestLiveVisibleReasoningFixture set start to now minus the event's at_ms
and then called see, which reads the clock again. Any time between the
two lands in the measured start, so on macOS CI (run 43530452364,
e730a14dc) it read 6790 where the fixture says 6789. The test now
records the time before setting start, and accepts the fixture's at_ms
up to the milliseconds that really passed during the first see.
Run on mica, at this change on f1f34d624:
- The test -count=20: ok. go vet -tags nogui ./internal/gateway: ok.
-run 'Reasoning|TTFT|FirstToken' ./internal/gateway: ok. gofmt clean.
- Broken by hand:
- The old test with a 3ms sleep before see: red, 6792/6789. The new
one with the same sleep: ok.
- ttft.go setting reasoning on every event, so the first is lost:
the new test is red (0/6789).
- Not run: the whole gateway package or the full suite; this changes one
test's bound only.