Pause Tokio time in startup draft handoff tests (#57243)

Run the deferred paste newline and standalone Enter handoff tests with
`start_paused = true` so their timing uses Tokio's paused clock.

GitOrigin-RevId: d903c0e1078b81531912e54819499b0c3a0fb307
This commit is contained in:
goodman-oai
2026-10-26 20:45:56 +00:00
committed by copyberry
parent db7516f41b
commit 7a9625f3ee
+2 -2
View File
@@ -471,7 +471,7 @@ async fn startup_draft_preserves_non_bracketed_multiline_pastes_without_submitti
assert!(pump.app_event_rx.try_recv().is_err());
}
#[tokio::test]
#[tokio::test(start_paused = true)]
async fn startup_draft_preserves_deferred_paste_newlines_across_handoff() {
let (event_tx, event_rx) = unbounded_channel();
let mut pump = startup_test_pump(std::iter::empty());
@@ -511,7 +511,7 @@ async fn startup_draft_preserves_deferred_paste_newlines_across_handoff() {
assert_eq!(pump.into_draft().text, "first line\ns");
}
#[tokio::test]
#[tokio::test(start_paused = true)]
async fn startup_draft_does_not_turn_a_standalone_enter_into_a_newline_at_handoff() {
let (_event_tx, event_rx) = unbounded_channel();
let mut pump = startup_test_pump(std::iter::empty());