From 323e44da04a1a666ab189ae6ba158ebfc4d65847 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 21 Jun 2023 23:46:40 +0000 Subject: [PATCH] test: make plaintext to HTML conversion tests non-async --- src/plaintext.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/plaintext.rs b/src/plaintext.rs index 2808e68a8..22780e993 100644 --- a/src/plaintext.rs +++ b/src/plaintext.rs @@ -107,8 +107,8 @@ impl PlainText { mod tests { use super::*; - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn test_plain_to_html() { + #[test] + fn test_plain_to_html() { let html = PlainText { text: r##"line 1 line 2 @@ -137,8 +137,8 @@ line with https://link-mid-of-line.org here!"#.to_string(), flowed: false, @@ -158,8 +158,8 @@ line with <http://encapsulated.l ); } - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn test_plain_to_html_nolink() { + #[test] + fn test_plain_to_html_nolink() { let html = PlainText { text: r#"line with nohttp://no.link here"#.to_string(), flowed: false, @@ -179,8 +179,8 @@ line with nohttp://no.link here
); } - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn test_plain_to_html_mailto() { + #[test] + fn test_plain_to_html_mailto() { let html = PlainText { text: r#"just an address: foo@bar.org another@one.de"#.to_string(), flowed: false, @@ -200,8 +200,8 @@ just an address:
foo@bar.org quote \n>still quote\n >no quote".to_string(), flowed: true, @@ -224,8 +224,8 @@ line still line
); } - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn test_plain_to_html_flowed_delsp() { + #[test] + fn test_plain_to_html_flowed_delsp() { let html = PlainText { text: "line \nstill line\n>quote \n>still quote\n >no quote".to_string(), flowed: true, @@ -248,8 +248,8 @@ linestill line
); } - #[tokio::test(flavor = "multi_thread", worker_threads = 2)] - async fn test_plain_to_html_fixed() { + #[test] + fn test_plain_to_html_fixed() { let html = PlainText { text: "line \nstill line\n>quote \n>still quote\n >no quote".to_string(), flowed: false,