From 98d17fc4d273fa051542bb4f1bfbfd8715004a97 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 12 Jan 2026 19:35:31 -0600 Subject: [PATCH] Fix another state bug in the uv auth tests (#17435) This test was also order dependent; see also #17424 --------- Co-authored-by: Claude --- crates/uv/tests/it/auth.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/uv/tests/it/auth.rs b/crates/uv/tests/it/auth.rs index 26c8dff4f..cc682637a 100644 --- a/crates/uv/tests/it/auth.rs +++ b/crates/uv/tests/it/auth.rs @@ -706,6 +706,11 @@ fn logout_native_auth() -> Result<()> { .arg("public") .env(EnvVars::UV_PREVIEW_FEATURES, "native-auth") .status()?; + context + .auth_logout() + .arg("https://pypi-proxy.fly.dev/basic-auth/simple") + .env(EnvVars::UV_PREVIEW_FEATURES, "native-auth") + .status()?; // Without a service name uv_snapshot!(context.auth_logout(), @r" @@ -726,12 +731,13 @@ fn logout_native_auth() -> Result<()> { uv_snapshot!(context.auth_logout() .arg("https://pypi-proxy.fly.dev/basic-auth/simple") .env(EnvVars::UV_PREVIEW_FEATURES, "native-auth"), @r" - success: true - exit_code: 0 + success: false + exit_code: 2 ----- stdout ----- ----- stderr ----- - Removed credentials for https://pypi-proxy.fly.dev/basic-auth + error: Unable to remove credentials for https://pypi-proxy.fly.dev/basic-auth + Caused by: No matching entry found in secure storage "); // Logout before logging in (with a username)