diff options
| author | akbash <akbash@herdr.dev> | 2026-08-21 15:16:43 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-21 15:16:43 +0300 |
| commit | 8fe09d5ddf77da5c377760682b33b386ebc37640 (patch) | |
| tree | c63a23bb630d17e8347c93dc1b01e3ff95bfc531 /tests | |
| parent | 624dfd4796559042ec13ccf4d4b54374902ab81d (diff) | |
fix: preserve multiline paste in terminal attach (#3056)
refs #3054
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/client_mode.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/client_mode.rs b/tests/client_mode.rs index 998df2be..5112182d 100644 --- a/tests/client_mode.rs +++ b/tests/client_mode.rs @@ -450,7 +450,13 @@ fn direct_attach_initial_mouse_capture_follows_config() { "mouse capture disabled must not enable host mouse reporting; output: {:?}", read_output(&output) ); + assert!( + read_output(&output).contains("\x1b[?2004h"), + "direct attach must enable host bracketed paste; output: {:?}", + read_output(&output) + ); + let restore_watermark = output_len(&output); attach ._master .as_ref() @@ -459,11 +465,10 @@ fn direct_attach_initial_mouse_capture_follows_config() { .expect("direct attach PTY writer") .write_all(b"\x02q") .expect("detach direct attach client"); + let restore_output = drain_until_client_exits(&mut attach, &output, restore_watermark); assert!( - wait_until(Duration::from_secs(5), Duration::from_millis(20), || { - attach.child.try_wait().ok().flatten().is_some() - }), - "direct attach client should detach" + restore_output.contains("\x1b[?2004l"), + "direct attach must disable host bracketed paste on restore; output: {restore_output:?}" ); drop(attach); |
