From 4f05de075feb38772767730c9e7fd28825d66c97 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Wed, 29 Jun 2022 17:58:32 +0200 Subject: [PATCH] Fix two tests (Tokio) --- src/pgp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pgp.rs b/src/pgp.rs index ba90ea7da..e1e3999d1 100644 --- a/src/pgp.rs +++ b/src/pgp.rs @@ -477,14 +477,14 @@ mod tests { futures_lite::future::block_on(pk_encrypt(CLEARTEXT, keyring, None)).unwrap() }); - #[test] - fn test_encrypt_signed() { + #[tokio::test(flavor = "multi_thread", worker_threads = 2)] + async fn test_encrypt_signed() { assert!(!CTEXT_SIGNED.is_empty()); assert!(CTEXT_SIGNED.starts_with("-----BEGIN PGP MESSAGE-----")); } - #[test] - fn test_encrypt_unsigned() { + #[tokio::test(flavor = "multi_thread", worker_threads = 2)] + async fn test_encrypt_unsigned() { assert!(!CTEXT_UNSIGNED.is_empty()); assert!(CTEXT_UNSIGNED.starts_with("-----BEGIN PGP MESSAGE-----")); }