You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(managed-oauth): give device login completion a load-tolerant budget #2232
crates/dim-app-server/tests/managed_oauth_flow.rs has three copies of:
tokio::time::timeout(Duration::from_secs(3),async{while grok.attempt_status(begin.attempt_id).await.unwrap() == AttemptStatus::Pending{
tokio::time::sleep(Duration::from_millis(10)).await;}}).await.expect("the device login did not complete after the token response");
The wait is a guard, not the behavior under test: the tests assert the completed login and the requests that follow. Under whole-suite load the exchange can take longer than 3 s; PR #2229's verify hit this twice on unrelated runs.
Scope
Add one bounded helper that waits for the attempt to leave Pending with a 30 s test budget and the existing message.
Replace the three copies.
No production change; no change to what the tests assert.
Acceptance
The three tests pass repeatedly.
The helper still fails within its bound if the attempt stays Pending.
Activity