mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user