From 8bf5ff950ee6dc1dc4dd60bbd111cb057b635a3b Mon Sep 17 00:00:00 2001 From: Fini Date: Sun, 19 Jul 2026 19:30:31 +0800 Subject: [PATCH] fix(desktop): give the reveal-drain test room for a loaded CI runner The provider delivers its batch on a worker thread; 200 pumps covers the local ~10-pump case but flakes under CI contention. Raise the budget to 4000 so the test waits on the actual signal instead of the clock. --- crates/op-host-desktop/src/chat_session_reveal_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/op-host-desktop/src/chat_session_reveal_tests.rs b/crates/op-host-desktop/src/chat_session_reveal_tests.rs index a34cf1274..2664ad268 100644 --- a/crates/op-host-desktop/src/chat_session_reveal_tests.rs +++ b/crates/op-host-desktop/src/chat_session_reveal_tests.rs @@ -73,7 +73,9 @@ fn pump_defers_loop_finalize_until_registered_reveals_drain() { Some(tool_rx), )); - for _ in 0..200 { + // Generous budget: the provider runs on a worker thread, and a loaded CI + // runner can take far longer than the local ~10 pumps to deliver the batch. + for _ in 0..4000 { pump(&mut host, &mut current, None, None, (1200.0, 800.0)); if op_editor_core::agent_indicators::latest_reveal_end_ms(epoch).is_some() { break;