Skip to content

Commit

Permalink
Fix unix signal test
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Oct 18, 2023
1 parent d654c2f commit 838c9c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,10 @@ async fn shutdown_through_signal() {
async {
let result = Toplevel::new(move |s| async move {
s.start(SubsystemBuilder::new("subsys", subsystem));
sleep(Duration::from_millis(1000))
assert!(sleep(Duration::from_millis(1000))
.cancel_on_shutdown(&s)
.await;
.await
.is_err());
assert!(s.is_shutdown_requested());
})
.catch_signals()
Expand Down

0 comments on commit 838c9c4

Please sign in to comment.