diff --git a/src/asynchronous/shutdown.rs b/src/asynchronous/shutdown.rs index 0bcf85c7..6ea6a92c 100644 --- a/src/asynchronous/shutdown.rs +++ b/src/asynchronous/shutdown.rs @@ -305,7 +305,7 @@ mod test { }); notifier.shutdown(); // Elapsed - assert!(matches!(notifier.wait_all_exit().await, Err(_))); + assert!(notifier.wait_all_exit().await.is_err()); task.await.unwrap(); } }