Files
magpie/internal
yetone 2f5e75515e gateway: the reservation test reads an account window it can cross (#6706)
6256d9956 added the "account" period to access.Periods, and
TestKeyLimitReservationsStayInTheirWindow, which runs every period, went
red for it: with no account reading the window's reset is unknown, so by
design it never resets and the reservation stays. The test now gives the
account's 5 hours through provider.AccountWindowVia, as internal/budget's
account_test.go does, so the boundary it crosses is a real one.

Run (mote, at ab08a9e7c + this change):
- go test -count=1 -run TestKeyLimitReservationsStayInTheirWindow
  ./internal/gateway: ok; -v shows account/tokens and account/cost run.
- Broken by hand: the stub answering known=false turns both account
  subtests red, as on main.
- Earlier, at 6256d9956: go test . ./internal/access ./internal/budget
  ./internal/tui ./internal/gateway: all ok but this test in gateway.
Not run: the whole gateway package again after the change.

Fixes #6706
2026-11-15 04:38:51 +08:00
..
…
…
…
…
…
…
…
…
…
…