await on default_config_for_test

This commit is contained in:
Channing Conger
2025-12-19 10:37:55 -08:00
parent f5adf8291a
commit 7361c1fea2
2 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ where
F: FnMut(&codex_core::protocol::EventMsg) -> bool,
{
use tokio::time::Duration;
wait_for_event_with_timeout(codex, predicate, Duration::from_secs(1)).await
wait_for_event_with_timeout(codex, predicate, Duration::from_secs(10)).await
}
pub async fn wait_for_event_match<T, F>(codex: &CodexConversation, matcher: F) -> T

View File

@@ -348,7 +348,7 @@ async fn responses_request_body_is_zstd_encoded() {
};
let codex_home = TempDir::new().expect("failed to create TempDir");
let mut config = load_default_config_for_test(&codex_home);
let mut config = load_default_config_for_test(&codex_home).await;
config.model_provider_id = provider.name.clone();
config.model_provider = provider.clone();
config.features.enable(Feature::RequestCompression);
@@ -445,7 +445,7 @@ async fn responses_request_body_is_uncompressed_when_disabled() {
};
let codex_home = TempDir::new().expect("failed to create TempDir");
let mut config = load_default_config_for_test(&codex_home);
let mut config = load_default_config_for_test(&codex_home).await;
config.model_provider_id = provider.name.clone();
config.model_provider = provider.clone();
let effort = config.model_reasoning_effort;