Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TrafficController] Fix test_traffic_sketch_with_slow_blocks flakiness #18603

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/sui-e2e-tests/tests/traffic_control_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ async fn test_traffic_sketch_with_slow_blocks() {
assert!(metrics.num_requests < expected_requests + 200);
// due to averaging, we will take 4 seconds to start blocking, then
// will be in blocklist for 1 second (roughly)
assert!(metrics.num_blocked > (expected_requests / 4) - 1_000);
assert!(metrics.num_blocked as f64 > (expected_requests as f64 / 4.0) * 0.90);
// 10 clients, blocked at least every 5 sceonds, over 20 seconds
assert!(metrics.num_blocklist_adds >= 40);
assert!(metrics.abs_time_to_first_block.unwrap() < Duration::from_secs(5));
Expand Down
Loading