Stabilize OAuth persistence test

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-04-27 10:45:14 +00:00
parent 520ee70b73
commit ec6227c6cd

View File

@@ -946,14 +946,13 @@ mod tests {
persistor.persist_if_needed().await?;
assert_eq!(
super::load_oauth_tokens(
&tokens.server_name,
&tokens.url,
OAuthCredentialsStoreMode::File
)?,
Some(newer_tokens)
);
let loaded = super::load_oauth_tokens(
&tokens.server_name,
&tokens.url,
OAuthCredentialsStoreMode::File,
)?
.expect("newer tokens should remain stored");
assert_tokens_match_without_expiry(&loaded, &newer_tokens);
Ok(())
}