Increase tolerance for bandwidth usage in test (#2576)

This commit is contained in:
Pierre Krieger
2019-05-14 14:40:06 +02:00
committed by Gavin Wood
parent 9a14ba0555
commit 5bde98e95a
+1 -1
View File
@@ -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);