Skip to main content

DEFAULT_REQUEST_OBSERVATION_TIMEOUT

Constant DEFAULT_REQUEST_OBSERVATION_TIMEOUT 

Source
pub const DEFAULT_REQUEST_OBSERVATION_TIMEOUT: Duration;
Expand description

The default observation window for absence checks and optional request reads.

Positive expectations use a separate 10-second default so slow scheduling does not fail tests. Both deadlines can be overridden with 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.