diff --git a/Cargo.lock b/Cargo.lock index 7dc9d84..fe555d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1520,7 +1520,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", "windows-sys", @@ -1562,9 +1562,9 @@ dependencies = [ [[package]] name = "termlens" -version = "0.11.2" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f87d209970e479a096785b98dc9f482934a5c74256a878385d1de18cb8ada20" +checksum = "a6a01f95c453a05e278ea908c3e19cab25d716bce21347515d8ef965e93ba941" dependencies = [ "insta", "libc", diff --git a/tests/cli.rs b/tests/cli.rs index 83e342d..ec68825 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -260,10 +260,15 @@ fn inspect_drives_mossaic_itself() { ); // The trailer goes to **stderr** since termlens 0.11 (termlens#340), so // what stdout carries is a saved screen — `inspect … > file` needs no - // editing before `render` or `diff` will read it. + // editing before `render` or `diff` will read it. Which "still running" + // it is depends on what ended the wait: since termlens 0.11.3 (#374) a + // TUI that goes quiet for `--idle` reads `still running (killed on + // exit)`, and only one that keeps printing until `--timeout` says `at + // the deadline`. Both mean it did not exit, which is all this asserts. assert!( - String::from_utf8_lossy(&out.stderr).contains("still running at the deadline"), - "mossaic is a TUI, so inspect reports the deadline rather than an exit: {}", + String::from_utf8_lossy(&out.stderr).contains("still running"), + "mossaic is a TUI, so inspect reports it still running rather than an \ + exit: {}", String::from_utf8_lossy(&out.stderr) ); assert!(