]> Repositorios git - scryer-prolog.git/commitdiff
lib_machine tests should not be tokio/async
authorNicolas Luck <[email protected]>
Wed, 13 Sep 2023 17:51:57 +0000 (19:51 +0200)
committerNicolas Luck <[email protected]>
Wed, 13 Sep 2023 17:51:57 +0000 (19:51 +0200)
src/machine/lib_machine.rs

index c2b8966a47a3300d32f1233873d049c379007850..28f82264e880a851c89bf5307a77dec18ba067fd 100644 (file)
@@ -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