Skip to content

Flaky test in release-tests-windows CI job #7466

@jimmygchen

Description

@jimmygchen

https://github.com/sigp/lighthouse/actions/runs/15044891932/job/42284911795

This test appears to be flaky:

──── STDERR: lighthouse_network::rpc_tests test_delayed_rpc_response

thread 'test_delayed_rpc_response' panicked at beacon_node\lighthouse_network\tests\rpc_tests.rs:1229:33:
assertion failed: request_sent_at.elapsed() >
(Duration::from_secs(QUOTA_SEC) - Duration::from_millis(100))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Here is the failing assertion:

// The second and subsequent responses are delayed due to the response rate-limiter on the receiver side.
// Adding a slight margin to the elapsed time check to account for potential timing issues caused by system
// scheduling or execution delays during testing.
assert!(
request_sent_at.elapsed()
> (Duration::from_secs(QUOTA_SEC)
- Duration::from_millis(100))
);

Although it looks like it already has a 100ms margin added, which should probably be enough? Might need @ackintosh's help to figure out the right fix.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions