TestRenewLoginsKeepsClaudeReading was red on every run since 07:00 UTC
11-06. Its /usage fixture says "resets Nov 6 at 11am (Asia/Dubai)",
which is 07:00 UTC 11-06, and the keep-alive reads it at the real time.
Once that hour went by the week counted as reset, so the reading had
Used 0 where the test wants 37. The issue was filed at 07:15 UTC.
resetsAhead writes the reset three days past now, for this test and for
TestRenewLoginsKeepsSavedClaudeSignedIn, which had the same fixed date
and didn't yet check Used. TestClaudeUsageWeeklyOnly holds its own
clock and keeps the reporter's text.
Run on mote: without the fix, -run TestRenewLoginsKeepsClaudeReading
-count=5 is red 5 of 5 now. With it, -run 'TestRenewLogins|
TestClaudeUsageWeeklyOnly' -count=3 is green under TZ=UTC,
Pacific/Kiritimati and America/Los_Angeles. internal/provider whole:
ok at c6b7bbedf (598s), beside the image commit before this one.
Both commits, rebased on 9a0aab32c (6 commits, none in these files),
then on 8f69ca29c (browser only; go vet ./... and go build ok there):
gateway, imagemcp and provider vet on darwin, linux nogui and windows
ok, go build ok; the gateway image, draw, Codex, Copilot and MCP tests,
internal/imagemcp and the provider keep-alive and Claude usage tests ok.