Skip to content

test(gateway-keys): pin the clock so CI survives the key expiry date - #375

Merged
gregv merged 1 commit into
developfrom
fix/gateway-key-tests-clock
Nov 17, 2026
Merged

gregv merged 1 commit into
developfrom
fix/gateway-key-tests-clock

Conversation

@gregv

@gregv gregv commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

CI on develop went red on Nov 16: GATEWAY_KEY_EXPIRES (2026-11-16T01:00Z) passed, and _key_duration() correctly refuses to mint a key that is already expired, so the 12 tests that mint on the real clock fail.

  • _key_duration reads a new _utc_now() seam (no behaviour change).
  • The test fixture pins it to before the expiry; one new test covers the refusal after expiry.

api/teams/tests: 218 passed (was 12 failed, 205 passed).

🤖 Generated with Claude Code

…XPIRES

Minting correctly refuses once the event expiry (2026-11-16T01:00Z) has
passed, so 12 tests that mint on the real clock went red on develop.
_key_duration now reads _utc_now() (a seam); the test fixture pins it to
before the expiry. No behaviour change.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@gregv
gregv merged commit fcce36c into develop Nov 17, 2026
6 checks passed
@gregv
gregv deleted the fix/gateway-key-tests-clock branch November 17, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant