csvlens
csvlens copied to clipboard
thread 'app::tests::test_copy_selection_crlf' (3536) panicked at src/app.rs:2870:9
Compiling from source with rust version 1.91.0 on RHEL9 based distro.
---- app::tests::test_copy_selection_crlf stdout ----
thread 'app::tests::test_copy_selection_crlf' (3536) panicked at src/app.rs:2870:9:
assertion `left == right` failed
left: ["──────────────────────────────────────────────────", " column_name ", "───┬─────────────────┬────────────────────────────", "1 │ value 1… │ ", "2 │ value 2… │ ", "3 │ value 3… │ ", " │ │ ", " │ │ ", "───┴─────────────────┴────────────────────────────", "Failed to copy to clipboard: Unknown error while i"]
right: ["──────────────────────────────────────────────────", " column_name ", "───┬─────────────────┬────────────────────────────", "1 │ value 1… │ ", "2 │ value 2… │ ", "3 │ value 3… │ ", " │ │ ", " │ │ ", "───┴─────────────────┴────────────────────────────", "Copied value 1 to clipboard "]
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: csvlens::app::tests::test_copy_selection_crlf
5: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Could you share more details about your test environment? That particular test case requires a desktop environment and is currently skipped in CI tests: https://github.com/YS-L/csvlens/blob/c420a829365ae7da174226bae25f8f6ce9a3867b/src/app.rs#L2839-L2842
That makes sense, COPR builds in a headless environment.