diff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rs index c72c8e42c7..86f929a70d 100644 --- a/codex-rs/tui/src/chatwidget/tests.rs +++ b/codex-rs/tui/src/chatwidget/tests.rs @@ -1468,7 +1468,7 @@ async fn rate_limit_switch_prompt_skips_when_on_lower_cost_model() { async fn rate_limit_switch_prompt_skips_non_codex_limit() { let auth = CodexAuth::create_dummy_chatgpt_auth_for_testing(); let (mut chat, _, _) = make_chatwidget_manual(Some("gpt-5")).await; - chat.auth_manager = AuthManager::from_auth_for_testing(auth); + chat.auth_manager = codex_core::test_support::auth_manager_from_auth(auth); chat.on_rate_limit_snapshot(Some(RateLimitSnapshot { limit_id: Some("codex_other".to_string()),