From ba835c3c36b2610a23043edeb05c8d32542c3898 Mon Sep 17 00:00:00 2001 From: xl-openai Date: Thu, 18 Dec 2025 18:07:23 -0800 Subject: [PATCH] Fix tests (#8299) Fix broken tests. --- codex-rs/tui/src/chatwidget/tests.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/codex-rs/tui/src/chatwidget/tests.rs b/codex-rs/tui/src/chatwidget/tests.rs index 377b34175..fe96b5f97 100644 --- a/codex-rs/tui/src/chatwidget/tests.rs +++ b/codex-rs/tui/src/chatwidget/tests.rs @@ -1284,9 +1284,9 @@ async fn unified_exec_end_after_task_complete_is_suppressed() { ); } -#[test] -fn unified_exec_waiting_multiple_empty_snapshots() { - let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None); +#[tokio::test] +async fn unified_exec_waiting_multiple_empty_snapshots() { + let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await; begin_unified_exec_startup(&mut chat, "call-wait-1", "proc-1", "just fix"); terminal_interaction(&mut chat, "call-wait-1a", "proc-1", ""); @@ -1311,9 +1311,9 @@ fn unified_exec_waiting_multiple_empty_snapshots() { assert_snapshot!("unified_exec_waiting_multiple_empty_after", combined); } -#[test] -fn unified_exec_empty_then_non_empty_snapshot() { - let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None); +#[tokio::test] +async fn unified_exec_empty_then_non_empty_snapshot() { + let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await; begin_unified_exec_startup(&mut chat, "call-wait-2", "proc-2", "just fix"); terminal_interaction(&mut chat, "call-wait-2a", "proc-2", ""); @@ -1327,9 +1327,9 @@ fn unified_exec_empty_then_non_empty_snapshot() { assert_snapshot!("unified_exec_empty_then_non_empty_after", combined); } -#[test] -fn unified_exec_non_empty_then_empty_snapshots() { - let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None); +#[tokio::test] +async fn unified_exec_non_empty_then_empty_snapshots() { + let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await; begin_unified_exec_startup(&mut chat, "call-wait-3", "proc-3", "just fix"); terminal_interaction(&mut chat, "call-wait-3a", "proc-3", "pwd\n");