Skip to content

Commit 08bd5d9

Browse files
Make performance tests more precise
1 parent ff8709a commit 08bd5d9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/stress.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ fn stress_test_ipv4(proto: &str) {
169169
stats.to_string()
170170
);
171171

172-
let min_pct = 40.0;
172+
let min_pct = if proto.eq_ignore_ascii_case("icmp") {
173+
40.0
174+
} else {
175+
70.0
176+
};
173177
let c2u_pct = if sent == 0 {
174178
0.0
175179
} else {

0 commit comments

Comments
 (0)