Skip to content

test: re-enable the OAuth router and rate limiter TTL suites - #376

Merged
Priyanshu-u07 merged 1 commit into
mainfrom
reenable-oauth-tests
Oct 3, 2026
Merged

Priyanshu-u07 merged 1 commit into
mainfrom
reenable-oauth-tests

Conversation

@Priyanshu-u07

Copy link
Copy Markdown
Collaborator

Two suites sat on the CI ignore list under "Currently failing". Both failed for reasons in the tests, not the code.

test_oauth_router.py built its app with auth_provider="external", but is_external_mode checks for "oidc" or "inferiaauth". Every OAuth route returned 503 and all 17 tests failed. One word.

test_rate_limiter_ttl.py had one flaky test. It drained burst_size tokens in a loop, but the defaults refill 166 a second and the loop takes about 9ms, so roughly 1.5 tokens flowed back before it checked and the bucket was never empty. It passed only when the loop beat ~6ms — one run in eight here. It now uses a small burst and no refill, measuring exhaustionrather than loop speed.

29 tests re-enabled.

Part of #308

Signed-off-by: Priyanshu-u07 <connect.priyanshu8271@gmail.com>
@Priyanshu-u07
Priyanshu-u07 merged commit c1915fe into main Oct 3, 2026
1 check passed
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