diff --git a/zenoh/tests/acl.rs b/zenoh/tests/acl.rs index 5cbd794d4f..13104338b7 100644 --- a/zenoh/tests/acl.rs +++ b/zenoh/tests/acl.rs @@ -140,7 +140,7 @@ mod test { publisher.delete().await.unwrap(); tokio::time::sleep(SLEEP).await; - assert_ne!(*zlock!(deleted), true); + assert!(!(*zlock!(deleted))); ztimeout!(subscriber.undeclare()).unwrap(); } close_sessions(sub_session, pub_session).await; @@ -194,7 +194,7 @@ mod test { publisher.delete().await.unwrap(); tokio::time::sleep(SLEEP).await; - assert_eq!(*zlock!(deleted), true); + assert!(*zlock!(deleted)); ztimeout!(subscriber.undeclare()).unwrap(); } @@ -276,7 +276,7 @@ mod test { publisher.delete().await.unwrap(); tokio::time::sleep(SLEEP).await; - assert_ne!(*zlock!(deleted), true); + assert!(!(*zlock!(deleted))); ztimeout!(subscriber.undeclare()).unwrap(); } close_sessions(sub_session, pub_session).await; @@ -357,7 +357,7 @@ mod test { publisher.delete().await.unwrap(); tokio::time::sleep(SLEEP).await; - assert_eq!(*zlock!(deleted), true); + assert!(*zlock!(deleted)); ztimeout!(subscriber.undeclare()).unwrap(); } close_sessions(sub_session, pub_session).await;