test(engine): cover envoy Sleep crash policy wake and recovery paths#4816
Conversation
PR ReviewPR: This is a clean, additive test-only PR that covers three previously untested crash/sleep/wake scenarios. The tests are well-structured and consistent with the surrounding file conventions. A few observations below. Issues1. No timeout guard on initial sleep-wait polling loops (moderate)In both tokio::time::timeout(Duration::from_secs(30), async {
loop {
// ... poll sleep_ts ...
}
})
.await
.expect("actor did not enter crash-induced sleep within 30s");This is consistent with the 30s inner guard already used for the connectable-wait loop in those same tests. 2. Exact crash count assertion may be brittle (low)In 3. Discarded
|

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: