You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and my cargo test -- --nocapture never shows it or with RUST_BACKTRACE=1:
assertion failed: result.is_ok()
stack backtrace:
0: rust_begin_unwind
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:652:5
1: core::panicking::panic_fmt
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/panicking.rs:72:14
2: core::panicking::panic
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/panicking.rs:146:5
3: sentrypeer_rust::tls::tests::test_listen
at ./src/tls.rs:194:13
4: sentrypeer_rust::tls::tests::test_listen::{{closure}}
at ./src/tls.rs:180:21
5: core::ops::function::FnOnce::call_once
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/ops/function.rs:250:5
6: core::ops::function::FnOnce::call_once
at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
test tls::tests::test_listen ... FAILED
this is probably my beginner mistake or misunderstanding or Tokio.
Any doc pointers you can share with me?
Thanks.
The text was updated successfully, but these errors were encountered:
assert!(result.is_ok()); takes a Result and turns it into a bool by discarding all the error/success data it contained, then asserts that is true. This means the assert has no information about why. How about just result.unwrap();?
Hi all,
I'm using the following example:
tokio-rustls/examples/server.rs
Line 43 in 6f7373d
when the private key doesn't exist, how do you get that panic error message?
I'm using the example here https://github.com/SentryPeer/SentryPeer/blob/main/sentrypeer_rust/src/tls.rs#L180
and my
cargo test -- --nocapture
never shows it or withRUST_BACKTRACE=1
:this is probably my beginner mistake or misunderstanding or Tokio.
Any doc pointers you can share with me?
Thanks.
The text was updated successfully, but these errors were encountered: