mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
Fix environment selection CI test harness
Use the shared test PathBufExt import for RMCP integration tests and run environment selection tests that touch the local executor under Tokio. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -160,8 +160,8 @@ mod tests {
|
||||
assert!(err.to_string().contains("duplicate"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn resolved_environment_selections_use_first_selection_as_primary() {
|
||||
#[tokio::test]
|
||||
async fn resolved_environment_selections_use_first_selection_as_primary() {
|
||||
let cwd = AbsolutePathBuf::current_dir().expect("cwd");
|
||||
let selected_cwd = cwd.join("selected");
|
||||
let manager = EnvironmentManager::default_for_tests();
|
||||
@@ -185,8 +185,8 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn resolved_environment_selections_use_fallback_without_selections() {
|
||||
#[tokio::test]
|
||||
async fn resolved_environment_selections_use_fallback_without_selections() {
|
||||
let cwd = AbsolutePathBuf::current_dir().expect("cwd");
|
||||
let manager = EnvironmentManager::default_for_tests();
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ use codex_protocol::protocol::McpToolCallBeginEvent;
|
||||
use codex_protocol::protocol::Op;
|
||||
use codex_protocol::protocol::TurnEnvironmentSelection;
|
||||
use codex_protocol::user_input::UserInput;
|
||||
use codex_utils_absolute_path::PathBufExt;
|
||||
use codex_utils_cargo_bin::cargo_bin;
|
||||
use core_test_support::PathBufExt;
|
||||
use core_test_support::assert_regex_match;
|
||||
use core_test_support::remote_env_env_var;
|
||||
use core_test_support::responses;
|
||||
|
||||
Reference in New Issue
Block a user