#7168: Add tokio_test::sink_mock #7190
+298
−14
Open
Cirrus CI / FreeBSD 64-bit
failed
Mar 2, 2025 in 6m 32s
Task Summary
Instruction test failed in 06:14
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:03 clone
✅ 00:12 setup
❌ 06:14 test
test tokio-stream/src/wrappers/watch.rs - wrappers::watch::WatchStream (line 35) ... ok
test tokio-stream/src/wrappers/watch.rs - wrappers::watch::WatchStream (line 53) ... ok
test result: ok. 65 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 9.93s
Doc-tests tokio_test
running 11 tests
test tokio-test/src/macros.rs - macros::assert_elapsed (line 265) ... ok
test tokio-test/src/macros.rs - macros::assert_err (line 232) ... ok
test tokio-test/src/macros.rs - macros::assert_ok (line 191) ... ok
test tokio-test/src/macros.rs - macros::assert_pending (line 120) ... ok
test tokio-test/src/macros.rs - macros::assert_ready (line 15) ... ok
test tokio-test/src/macros.rs - macros::assert_ready_eq (line 159) ... ok
test tokio-test/src/macros.rs - macros::assert_ready_err (line 87) ... ok
test tokio-test/src/macros.rs - macros::assert_ready_ok (line 54) ... ok
test tokio-test/src/stream_mock.rs - stream_mock (line 15) ... ok
test tokio-test/src/task.rs - task (line 18) ... ok
test tokio-test/src/sink_mock.rs - sink_mock (line 17) ... FAILED
failures:
---- tokio-test/src/sink_mock.rs - sink_mock (line 17) stdout ----
error[E0283]: type annotations needed for `SinkMock<i32, _>`
--> tokio-test/src/sink_mock.rs:23:9
|
9 | let mut sink_mock = SinkMockBuilder::new()
| ^^^^^^^^^^^^^ ---------------------- type must be known at this point
|
= note: cannot satisfy `_: Unpin`
note: required by a bound in `SinkMockBuilder::<T, E>::new`
--> /tmp/cirrus-ci-build/tokio-test/src/sink_mock.rs:57:19
|
57 | impl<T: Unpin, E: Unpin> SinkMockBuilder<T, E> {
| ^^^^^ required by this bound in `SinkMockBuilder::<T, E>::new`
58 | /// Create a new empty [`SinkMockBuilder`].
59 | pub fn new() -> Self {
| --- required by a bound in this associated function
help: consider giving `sink_mock` an explicit type, where the type for type parameter `E` is specified
|
9 | let mut sink_mock: SinkMock<i32, E> = SinkMockBuilder::new()
| ++++++++++++++++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0283`.
Couldn't compile the test.
failures:
tokio-test/src/sink_mock.rs - sink_mock (line 17)
test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.34s
error: doctest failed, to rerun pass `-p tokio-test --doc`
Exit status: 101
Loading