Constant zebra_test::mock_service::DEFAULT_MAX_REQUEST_DELAY

source ·
pub const DEFAULT_MAX_REQUEST_DELAY: Duration;
Expand description

The default timeout before considering a request has not been received.

This is the time that the mocked service waits before considering a request will not be received. It can be configured in the MockService using MockServiceBuilder::with_max_request_delay.

Note that if a test checks that no requests are received, each check has to wait for this amount of time, so this may affect the test execution time.

We’ve seen delays up to 67ms on busy Linux and macOS machines, and some other timeout failures even with a 150ms timeout.