Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with --features=desktop-notifications #407

Closed
osa1 opened this issue Jul 18, 2023 · 0 comments · Fixed by #408
Closed

Test failure with --features=desktop-notifications #407

osa1 opened this issue Jul 18, 2023 · 0 comments · Fixed by #408

Comments

@osa1
Copy link
Owner

osa1 commented Jul 18, 2023

Originally reported in https://github.com/NixOS/nixpkgs/pull/243860/files#r1266384829.

$ cargo test --features=desktop-notifications
...
---- tests::config::parsing_tab_configs stdout ----
thread 'tests::config::parsing_tab_configs' panicked at 'assertion failed: `(left == right)`
  left: `Some(TabConfig { ignore: Some(true), notify: Some(Off) })`,
 right: `Some(TabConfig { ignore: Some(true), notify: Some(Mentions) })`', crates/libtiny_tui/src/tests/config.rs:70:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:228:5
   4: libtiny_tui::tests::config::parsing_tab_configs
             at ./src/tests/config.rs:70:5
   5: libtiny_tui::tests::config::parsing_tab_configs::{{closure}}
             at ./src/tests/config.rs:7:26
   6: core::ops::function::FnOnce::call_once
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

We should start running tests with desktop-notifications. The other feature we have is about TLS, which we don't test, so there will be just one more test configuration.

osa1 added a commit that referenced this issue Jul 18, 2023
@osa1 osa1 closed this as completed in #408 Jul 18, 2023
osa1 added a commit that referenced this issue Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant