mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
await on default_config_for_test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user