From 9e817a623b997c78cb34cb8d48cf775f75b9d2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 15 Apr 2021 15:01:56 +0200 Subject: [PATCH] crypto: Fix an invalid assert in the crypto bench --- matrix_sdk_crypto/benches/crypto_bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_crypto/benches/crypto_bench.rs b/matrix_sdk_crypto/benches/crypto_bench.rs index 271be9b7..6e656ae5 100644 --- a/matrix_sdk_crypto/benches/crypto_bench.rs +++ b/matrix_sdk_crypto/benches/crypto_bench.rs @@ -213,7 +213,7 @@ pub fn room_key_sharing(c: &mut Criterion) { .await .unwrap(); - assert!(requests.len() >= 8); + assert!(!requests.is_empty()); for request in requests { machine @@ -249,7 +249,7 @@ pub fn room_key_sharing(c: &mut Criterion) { .await .unwrap(); - assert!(requests.len() >= 8); + assert!(!requests.is_empty()); for request in requests { machine