Check for log level before doing perf counter work
Perf counters, especially when running the dynamic test can cause functions like crdt::apply_updates to be really slow (>500ms).
This commit is contained in:
committed by
sakridge
parent
c64e2acf8b
commit
38be61bd22
@ -623,12 +623,12 @@ fn test_multi_node_dynamic_network() {
|
||||
}
|
||||
}
|
||||
}
|
||||
assert_eq!(consecutive_success, 10);
|
||||
info!(
|
||||
"Took {} s to converge total failures: {}",
|
||||
duration_as_s(&now.elapsed()),
|
||||
failures
|
||||
);
|
||||
assert_eq!(consecutive_success, 10);
|
||||
for (_, node) in &validators {
|
||||
node.exit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user