netstack_testing_common

Function wait_for_component_stopped_with_stream

Source
pub async fn wait_for_component_stopped_with_stream(
    event_stream: &mut EventStream,
    realm: &TestRealm<'_>,
    component_moniker: &str,
    status_matcher: Option<ExitStatusMatcher>,
) -> Result<Stopped>
Expand description

Waits for a stopped event to be emitted for a component in a test realm.

Optionally specifies a matcher for the expected exit status of the stopped event.