Created
March 3, 2025 14:33
-
-
Save dzamlo/b8d6864203c27ebf28a2bc1f8193de28 to your computer and use it in GitHub Desktop.
cargo test -F hardware-tests --test test_timeout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running 9 tests | |
test test_read_returns_available_data_before_timeout::case_1 ... FAILED | |
test test_read_returns_available_data_before_timeout::case_2 ... FAILED | |
test test_timeout_greater_zero::case_1 ... FAILED | |
test test_timeout_greater_zero::case_2 ... FAILED | |
test test_timeout_greater_zero::case_3 ... FAILED | |
test test_timeout_max ... FAILED | |
test test_timeout_zero::case_1 ... FAILED | |
test test_timeout_zero::case_2 ... FAILED | |
test test_timeout_zero::case_3 ... FAILED | |
failures: | |
---- test_read_returns_available_data_before_timeout::case_1 stdout ---- | |
-------------- TEST START -------------- | |
send: 1 bytes | |
send: 1 bytes | |
thread '<unnamed>' panicked at tests/test_timeout.rs:53:21: | |
assertion failed: expected_chunk_until > Instant::now() | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::panicking::panic | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:145:5 | |
3: test_timeout::test_read_returns_available_data_before_timeout::{{closure}} | |
at ./tests/test_timeout.rs:53:21 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
send: 1 bytes | |
send: 1 bytes | |
send: 1 bytes | |
send: 1 bytes | |
thread 'test_read_returns_available_data_before_timeout::case_1' panicked at tests/test_timeout.rs:88:28: | |
called `Result::unwrap()` on an `Err` value: Any { .. } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_read_returns_available_data_before_timeout | |
at ./tests/test_timeout.rs:88:5 | |
5: test_timeout::test_read_returns_available_data_before_timeout::case_1 | |
at ./tests/test_timeout.rs:10:1 | |
6: test_timeout::test_read_returns_available_data_before_timeout::case_1::{{closure}} | |
at ./tests/test_timeout.rs:10:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_read_returns_available_data_before_timeout::case_2 stdout ---- | |
-------------- TEST START -------------- | |
send: 20 bytes | |
thread '<unnamed>' panicked at tests/test_timeout.rs:77:37: | |
called `Result::unwrap()` on an `Err` value: Custom { kind: BrokenPipe, error: "Broken pipe" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_read_returns_available_data_before_timeout::{{closure}} | |
at ./tests/test_timeout.rs:77:13 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
thread 'test_read_returns_available_data_before_timeout::case_2' panicked at tests/test_timeout.rs:87:26: | |
called `Result::unwrap()` on an `Err` value: Any { .. } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_read_returns_available_data_before_timeout | |
at ./tests/test_timeout.rs:87:5 | |
5: test_timeout::test_read_returns_available_data_before_timeout::case_2 | |
at ./tests/test_timeout.rs:10:1 | |
6: test_timeout::test_read_returns_available_data_before_timeout::case_2::{{closure}} | |
at ./tests/test_timeout.rs:10:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_greater_zero::case_1 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_greater_zero::case_1' panicked at tests/test_timeout.rs:153:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_greater_zero | |
at ./tests/test_timeout.rs:150:24 | |
5: test_timeout::test_timeout_greater_zero::case_1 | |
at ./tests/test_timeout.rs:141:1 | |
6: test_timeout::test_timeout_greater_zero::case_1::{{closure}} | |
at ./tests/test_timeout.rs:141:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_greater_zero::case_2 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_greater_zero::case_2' panicked at tests/test_timeout.rs:153:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_greater_zero | |
at ./tests/test_timeout.rs:150:24 | |
5: test_timeout::test_timeout_greater_zero::case_2 | |
at ./tests/test_timeout.rs:141:1 | |
6: test_timeout::test_timeout_greater_zero::case_2::{{closure}} | |
at ./tests/test_timeout.rs:141:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_greater_zero::case_3 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_greater_zero::case_3' panicked at tests/test_timeout.rs:153:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_greater_zero | |
at ./tests/test_timeout.rs:150:24 | |
5: test_timeout::test_timeout_greater_zero::case_3 | |
at ./tests/test_timeout.rs:141:1 | |
6: test_timeout::test_timeout_greater_zero::case_3::{{closure}} | |
at ./tests/test_timeout.rs:141:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_max stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_max' panicked at tests/test_timeout.rs:193:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_max::test_timeout_max | |
at ./tests/test_timeout.rs:190:24 | |
5: test_timeout::test_timeout_max | |
at ./tests/test_timeout.rs:184:1 | |
6: test_timeout::test_timeout_max::{{closure}} | |
at ./tests/test_timeout.rs:184:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_zero::case_1 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_zero::case_1' panicked at tests/test_timeout.rs:104:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_zero | |
at ./tests/test_timeout.rs:101:24 | |
5: test_timeout::test_timeout_zero::case_1 | |
at ./tests/test_timeout.rs:91:1 | |
6: test_timeout::test_timeout_zero::case_1::{{closure}} | |
at ./tests/test_timeout.rs:91:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_zero::case_2 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_zero::case_2' panicked at tests/test_timeout.rs:104:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_zero | |
at ./tests/test_timeout.rs:101:24 | |
5: test_timeout::test_timeout_zero::case_2 | |
at ./tests/test_timeout.rs:91:1 | |
6: test_timeout::test_timeout_zero::case_2::{{closure}} | |
at ./tests/test_timeout.rs:91:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
---- test_timeout_zero::case_3 stdout ---- | |
-------------- TEST START -------------- | |
thread 'test_timeout_zero::case_3' panicked at tests/test_timeout.rs:104:10: | |
called `Result::unwrap()` on an `Err` value: Error { kind: Unknown, description: "Device or resource busy" } | |
stack backtrace: | |
0: rust_begin_unwind | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/std/src/panicking.rs:695:5 | |
1: core::panicking::panic_fmt | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/panicking.rs:75:14 | |
2: core::result::unwrap_failed | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/result.rs:1704:5 | |
3: core::result::Result<T,E>::unwrap | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1109:23 | |
4: test_timeout::test_timeout_zero | |
at ./tests/test_timeout.rs:101:24 | |
5: test_timeout::test_timeout_zero::case_3 | |
at ./tests/test_timeout.rs:91:1 | |
6: test_timeout::test_timeout_zero::case_3::{{closure}} | |
at ./tests/test_timeout.rs:91:10 | |
7: core::ops::function::FnOnce::call_once | |
at /home/dzamlo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 | |
8: core::ops::function::FnOnce::call_once | |
at /rustc/92bedea1c51e3a969d60972be854506ffd8c5cb6/library/core/src/ops/function.rs:250:5 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
failures: | |
test_read_returns_available_data_before_timeout::case_1 | |
test_read_returns_available_data_before_timeout::case_2 | |
test_timeout_greater_zero::case_1 | |
test_timeout_greater_zero::case_2 | |
test_timeout_greater_zero::case_3 | |
test_timeout_max | |
test_timeout_zero::case_1 | |
test_timeout_zero::case_2 | |
test_timeout_zero::case_3 | |
test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.52s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment