mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-23 21:29:27 +00:00
Three independent CI blockers landed on main from concurrent PR merges: - openai_quota_service.go (introduced byb8169492): const block spacing not gofmt-compliant + trailing blank line. golangci-lint v2.9 flagged it on every push after the merge. - openai_images_failover_test.go (introduced by PR #3155,da30c599): NewOpenAIGatewayHandler call missing the opsService argument added by PR #3230 (b62b573f). Test was authored before #3230 and merged without rebase, causing "not enough arguments" compile error. - account_quota_reset_test.go: TestIsFixedDailyPeriodExpired_NotExpired and TestIsFixedWeeklyPeriodExpired_NotExpired used time.Now()-1min as periodStart, which crosses the 09:00 UTC reset boundary when CI runs in the 09:00:00-09:00:59 window. Anchoring periodStart to today's 12:00 UTC removes the race.