Repository navigation
test(auth-sdk): SDK tests await overlapping refreshes and accepted connections instead of sleeping - #698
Open
PiquelChips wants to merge 1 commit into
Open
test(auth-sdk): SDK tests await overlapping refreshes and accepted connections instead of sleeping#698PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
…nnections instead of sleeping
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
marked this pull request as ready for review
November 22, 2026 14:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three Rust SDK tests waited on time:
Each now waits for the event it needs.
Independent of the other PRs in this series; based on
main.Tests
concurrent_refreshes_all_succeed: its token endpoint answers a refresh only once two have arrived (awatchcounter), so the two refreshes provably overlap. Before, every answer was delayed by 100ms. A lease between the requests would leave the first unanswered. Checked: with refreshes serialized behind a mutex, the test fails at the SDK's request deadline.TokenEndpoint::startloses itsdelayargument, since every other caller passedDuration::ZERO.std::future::pending()instead of sleeping an hour. The logout test that uses it still pauses time, so the SDK's deadline ends the revocation at once, and its assertions are unchanged.cancelled_fetches_leave_keys_unavailable: the key fetch is cancelled once the silent server accepts its connection (select!onaccept), instead of after a 100ms timeout. The test then asserts the sameUnavailableresult.I ran the whole
sourceorigin-authsuite (49 tests, all features) five times, and it passed every time.Council review
Rounds: 2
GPT 6.1 Sol could not take part: its account hit its usage limit.
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 and Claude Fable 5.2 (via T3 Code)