mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 20:57:59 +00:00
Increase tolerance for bandwidth usage in test (#2576)
This commit is contained in:
committed by
Gavin Wood
parent
9a14ba0555
commit
5bde98e95a
@@ -150,7 +150,7 @@ fn many_nodes_connectivity() {
|
||||
let mut num_connecs = 0;
|
||||
stream::poll_fn(move || -> io::Result<_> {
|
||||
loop {
|
||||
const MAX_BANDWIDTH: u64 = NUM_NODES as u64 * 1024; // 1kiB/s/node
|
||||
const MAX_BANDWIDTH: u64 = NUM_NODES as u64 * 2048; // 2kiB/s/node
|
||||
assert!(node.average_download_per_sec() < MAX_BANDWIDTH);
|
||||
assert!(node.average_upload_per_sec() < MAX_BANDWIDTH);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user