S005: exact byte counts in a resume test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
59e921762d
commit
f20faeb5ae
1 changed files with 3 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ async fn servers_without_ranges_or_length() {
|
|||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn no_ranges_starts_over() {
|
||||
let b = Bench::new().await;
|
||||
let mut b = Bench::new().await;
|
||||
let path = "/data/10/4m/o.bin";
|
||||
let id = b.add(&format!("{path}?ignore_range=1"));
|
||||
b.server.set_faults(path, slow(2 * MB));
|
||||
|
|
@ -288,10 +288,12 @@ async fn no_ranges_starts_over() {
|
|||
b.half(id).await;
|
||||
b.server.clear_all_faults();
|
||||
b.server.clear_log();
|
||||
b.cap = 1;
|
||||
let done = b.run(id).await.unwrap();
|
||||
assert_eq!(done, b.folder().join("o (1).bin"));
|
||||
b.check(&done, 10, 4 * MB);
|
||||
assert!(b.sent(path) < 4 * MB);
|
||||
b.cap = 4;
|
||||
|
||||
// Started with ranges, and now there are none: nothing is thrown away.
|
||||
let path = "/data/10/8m/r.bin";
|
||||
|
|
|
|||
Loading…
Reference in a new issue