mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Fix two tests (Tokio)
This commit is contained in:
@@ -477,14 +477,14 @@ mod tests {
|
|||||||
futures_lite::future::block_on(pk_encrypt(CLEARTEXT, keyring, None)).unwrap()
|
futures_lite::future::block_on(pk_encrypt(CLEARTEXT, keyring, None)).unwrap()
|
||||||
});
|
});
|
||||||
|
|
||||||
#[test]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
fn test_encrypt_signed() {
|
async fn test_encrypt_signed() {
|
||||||
assert!(!CTEXT_SIGNED.is_empty());
|
assert!(!CTEXT_SIGNED.is_empty());
|
||||||
assert!(CTEXT_SIGNED.starts_with("-----BEGIN PGP MESSAGE-----"));
|
assert!(CTEXT_SIGNED.starts_with("-----BEGIN PGP MESSAGE-----"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
fn test_encrypt_unsigned() {
|
async fn test_encrypt_unsigned() {
|
||||||
assert!(!CTEXT_UNSIGNED.is_empty());
|
assert!(!CTEXT_UNSIGNED.is_empty());
|
||||||
assert!(CTEXT_UNSIGNED.starts_with("-----BEGIN PGP MESSAGE-----"));
|
assert!(CTEXT_UNSIGNED.starts_with("-----BEGIN PGP MESSAGE-----"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user