Skip to main content

assert_recovered

Function assert_recovered 

Source
pub fn assert_recovered(
    name: impl Into<String>,
    expected_failures: usize,
    actual_failures: usize,
    final_state_ok: bool,
) -> CheckResult
Expand description

Verify that recovery logic succeeded after a failure schedule.

expected_failures is the number of times the recovery path was expected to be triggered. actual_failures is what was observed. Returns a CheckResult describing whether recovery worked.