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:
starr-openai
2026-04-30 16:02:34 -07:00
parent d0592337e8
commit 56f259e8ec
2 changed files with 5 additions and 5 deletions

View File

@@ -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();

View File

@@ -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;