Update dynamic network test with more nodes (#904)

- Check for correct OS params in test-large-network.sh
This commit is contained in:
pgarg66 2018-08-08 06:52:57 -07:00 committed by GitHub
parent 9783d47fd1
commit 75854cc234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -16,10 +16,20 @@ export LD_LIBRARY_PATH+=:$PWD
export RUST_LOG=multinode=info
if [[ $(ulimit -n) -le 65000 ]]; then
if [[ $(ulimit -n) -lt 65000 ]]; then
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
echo 'Error: rmem_default too small, run "sysctl -w net.core.rmem_default 1610612736" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then
echo 'Error: rmem_max too small, run "sysctl -w net.core.rmem_max 1610612736" to continue'
exit 1
fi
set -x
exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored

2
tests/multinode.rs Executable file → Normal file
View File

@ -523,7 +523,7 @@ fn test_multi_node_dynamic_network() {
Ok(val) => val
.parse()
.expect(&format!("env var {} is not parse-able as usize", key)),
Err(_) => 60,
Err(_) => 200,
};
let purge_key = "SOLANA_DYNAMIC_NODES_PURGE_LAG";