Skip to content

test(policy-gateway): harden circuit breaker timing spec#180

Draft
pshkv wants to merge 2 commits into
mainfrom
codex/fix-circuit-breaker-flake
Draft

test(policy-gateway): harden circuit breaker timing spec#180
pshkv wants to merge 2 commits into
mainfrom
codex/fix-circuit-breaker-flake

Conversation

@pshkv
Copy link
Copy Markdown
Contributor

@pshkv pshkv commented Apr 22, 2026

This fixes a CI flake in : the OPEN→HALF_OPEN state-machine test used a 5ms window and could advance early on GitHub runners.

Change:

  • widen the timeout window in the spec to 100ms
  • wait 120ms before asserting HALF_OPEN

This keeps the production circuit-breaker behavior unchanged and makes the test deterministic.

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