From 2cb5e42fff6c7d371df006e6040c8629992b97d0 Mon Sep 17 00:00:00 2001 From: huihui Date: Sat, 21 Nov 2026 17:47:01 +0800 Subject: [PATCH] test(cli): give the spawn progress flow a stable bound The spawn wait flow ran on a 1.5 s inactivity bound while its script wrote twelve notes 0.3 s apart and then exec'd the real app-server. Because exec keeps the pid and the app-server's counters start over, progress stopped extending the wait after the script's last note, so a scheduling gap on a loaded macOS runner ended the wait before hello. Give the flow the production ten-second bound, twenty notes 0.6 s apart, which still lasts about twelve seconds, and leave the assertions, the neighbouring flows and the product default unchanged. With progress notes no longer extending the wait the flow still fails with the startup timeout, so it has not become weaker. --- crates/dimcode/tests/cli_flow/daemon_startup_progress.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/dimcode/tests/cli_flow/daemon_startup_progress.rs b/crates/dimcode/tests/cli_flow/daemon_startup_progress.rs index 593385a662..a85df688c6 100644 --- a/crates/dimcode/tests/cli_flow/daemon_startup_progress.rs +++ b/crates/dimcode/tests/cli_flow/daemon_startup_progress.rs @@ -1116,9 +1116,9 @@ fn an_assembly_note_is_waited_for_before_the_spawn_answers() { let home = Home::new(); let note = note_path(&home); let mut body = String::new(); - for counter in 1..=12 { + for counter in 1..=20 { body.push_str(&assembly_note_write(¬e, "$$", counter)); - body.push_str("\nsleep 0.3\n"); + body.push_str("\nsleep 0.6\n"); } body.push_str(&format!( "exec '{}' app-server \"$@\"", @@ -1127,7 +1127,7 @@ fn an_assembly_note_is_waited_for_before_the_spawn_answers() { let server = script(&home, "assembly-server", &body); let output = home .command() - .env("DIM_TEST_DAEMON_START_TIMEOUT_MS", "1500") + .env("DIM_TEST_DAEMON_START_TIMEOUT_MS", "10000") .args(["--server", server.to_str().unwrap(), "models", "fixture"]) .output() .unwrap();