This commit is contained in:
Alexey
2026-04-21 13:31:24 +03:00
parent db114f09c3
commit 4ce6b14bd8
3 changed files with 7 additions and 14 deletions

View File

@@ -175,14 +175,8 @@ async fn copy_with_zero_cap_drains_until_eof() {
let mut reader = FinitePatternReader::new(payload, 3072, read_calls);
let mut writer = CountingWriter::default();
let outcome = copy_with_idle_timeout(
&mut reader,
&mut writer,
0,
true,
MASK_RELAY_IDLE_TIMEOUT,
)
.await;
let outcome =
copy_with_idle_timeout(&mut reader, &mut writer, 0, true, MASK_RELAY_IDLE_TIMEOUT).await;
assert_eq!(outcome.total, payload);
assert_eq!(writer.written, payload);