From 5fa68e253c04a6b1694bee1ead9a11620cb10285 Mon Sep 17 00:00:00 2001 From: Nicolas Luck Date: Wed, 13 Sep 2023 19:51:57 +0200 Subject: [PATCH] lib_machine tests should not be tokio/async --- src/machine/lib_machine.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/machine/lib_machine.rs b/src/machine/lib_machine.rs index c2b8966a..28f82264 100644 --- a/src/machine/lib_machine.rs +++ b/src/machine/lib_machine.rs @@ -147,8 +147,8 @@ mod tests { use super::*; use crate::machine::{QueryMatch, Value, QueryResolution}; - #[tokio::test] - async fn programatic_query() { + #[test] + fn programatic_query() { let mut machine = Machine::new_lib(); machine.load_module_string( @@ -186,8 +186,8 @@ mod tests { ); } - #[tokio::test] - async fn failing_query() { + #[test] + fn failing_query() { let mut machine = Machine::new_lib(); let query = String::from(r#"triple("a",P,"b")."#); let output = machine.run_query(query); @@ -197,8 +197,8 @@ mod tests { ); } - #[tokio::test] - async fn complex_results() { + #[test] + fn complex_results() { let mut machine = Machine::new_lib(); machine.load_module_string( "facts", @@ -249,8 +249,8 @@ mod tests { ); } - #[tokio::test] - async fn list_results() { + #[test] + fn list_results() { let mut machine = Machine::new_lib(); machine.load_module_string( "facts", @@ -270,8 +270,8 @@ mod tests { } - #[tokio::test] - async fn consult() { + #[test] + fn consult() { let mut machine = Machine::new_lib(); machine.consult_module_string( @@ -330,8 +330,8 @@ mod tests { } #[ignore = "fails on windows"] - #[tokio::test] - async fn stress_integration_test() { + #[test] + fn stress_integration_test() { let mut machine = Machine::new_lib(); // File with test commands, i.e. program code to consult and queries to run -- 2.54.0