Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling run() after crashing a host errors #82

Closed
mcches opened this issue Feb 9, 2023 · 0 comments · Fixed by #85
Closed

Calling run() after crashing a host errors #82

mcches opened this issue Feb 9, 2023 · 0 comments · Fixed by #85
Labels
bug Something isn't working

Comments

@mcches
Copy link
Contributor

mcches commented Feb 9, 2023

Repro:

#[test]
fn run_after_host_crashes() -> Result {
    let mut sim = Builder::new().build();

    sim.host("h", || async { future::pending().await });

    sim.crash("h");

    sim.run()
}

Fails with:

running 1 test
Error: JoinError::Cancelled(Id(1))
test sim::test::run_after_host_crashes ... FAILED

failures:

failures:
    sim::test::run_after_host_crashes

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 10 filtered out; finished in 0.00s
@mcches mcches added the bug Something isn't working label Feb 9, 2023
@mcches mcches linked a pull request Feb 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant