Skip to content

Commit

Permalink
Fix compilation errors when testing a single crate
Browse files Browse the repository at this point in the history
Seems like rust-lang/cargo#8379 is the issue
here.
  • Loading branch information
imotov committed Feb 10, 2023
1 parent 91fef8b commit 311f56a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion quickwit/quickwit-indexing/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,14 @@ impl TestSandbox {

#[cfg(any(test, feature = "testsuite"))]
pub async fn assert_quit(self) {
self.universe.assert_quit().await;
use quickwit_actors::ActorExitStatus;

assert!(!self
.universe
.quit()
.await
.into_iter()
.any(|status| matches!(status, ActorExitStatus::Panicked)));
}
}

Expand Down

0 comments on commit 311f56a

Please sign in to comment.