style(tests): byte-string literal in the stalled-writer probe
clippy::byte_char_slices, pre-existing and unrelated to the refactor in the previous commit — split out so that diff stays scoped. Restores a clean `cargo clippy --all-features --all-targets`.
This commit is contained in:
@@ -1069,7 +1069,7 @@ fn body_smooth_trickle_evicted_at_stall_timeout() {
|
|||||||
let start = std::time::Instant::now();
|
let start = std::time::Instant::now();
|
||||||
let mut evicted = false;
|
let mut evicted = false;
|
||||||
for _ in 0..200 { // up to ~20s; eviction expected at ~800ms
|
for _ in 0..200 { // up to ~20s; eviction expected at ~800ms
|
||||||
if s.write_all(&[b'x']).is_err() {
|
if s.write_all(b"x").is_err() {
|
||||||
evicted = true; // server closed on us -> write failed
|
evicted = true; // server closed on us -> write failed
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user