From 8feecbbc3675f25cbdb24d8a511620a1b8eb6f89 Mon Sep 17 00:00:00 2001 From: Dylan Hurd Date: Mon, 20 Apr 2026 03:25:00 -0700 Subject: [PATCH] test: shorten optional fs watch event wait --- codex-rs/app-server/tests/suite/v2/fs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/app-server/tests/suite/v2/fs.rs b/codex-rs/app-server/tests/suite/v2/fs.rs index 642844eb92..6be95dad84 100644 --- a/codex-rs/app-server/tests/suite/v2/fs.rs +++ b/codex-rs/app-server/tests/suite/v2/fs.rs @@ -33,6 +33,7 @@ use std::process::Command; const DEFAULT_READ_TIMEOUT: Duration = Duration::from_secs(60); #[cfg(not(any(target_os = "macos", windows)))] const DEFAULT_READ_TIMEOUT: Duration = Duration::from_secs(10); +const OPTIONAL_FS_CHANGED_TIMEOUT: Duration = Duration::from_millis(1500); async fn initialized_mcp(codex_home: &TempDir) -> Result { let mut mcp = McpProcess::new(codex_home.path()).await?; @@ -832,7 +833,7 @@ async fn maybe_fs_changed_notification( mcp: &mut McpProcess, ) -> Result> { match timeout( - DEFAULT_READ_TIMEOUT, + OPTIONAL_FS_CHANGED_TIMEOUT, mcp.read_stream_until_notification_message("fs/changed"), ) .await