Keep the RA test peer open until clients finish under parallel load

This commit is contained in:
Дмитрий committed 2026-10-10 20:55:38 +05:00
1 parent b101c79e96
commit 3405c89fe8
1 file changed
+1 -1
+1 -1
View File
@@ -278,7 +278,7 @@ mod tests {
}
// Close gracefully: dropping a socket with unread data would send RST and could discard the reply.
let _ = s.shutdown(std::net::Shutdown::Write);
let _ = s.set_read_timeout(Some(Duration::from_secs(2)));
let _ = s.set_read_timeout(Some(Duration::from_secs(15)));
let mut sink = [0u8; 64];
while matches!(s.read(&mut sink), Ok(n) if n > 0) {}
got