From 7a688ab291b0107df135e44988bcc9e720341aab Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Thu, 3 Dec 2020 20:02:45 +0100 Subject: [PATCH] Fix broken test on Linux --- src/extension/script.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extension/script.rs b/src/extension/script.rs index 5dbedc9..0c92a4c 100644 --- a/src/extension/script.rs +++ b/src/extension/script.rs @@ -174,7 +174,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &HashMap::new()); + let output = extension.calculate(¶ms, &vec![], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -194,7 +194,7 @@ mod tests { params.insert(Value::from("trim"), Value::from(false)); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &HashMap::new()); + let output = extension.calculate(¶ms, &vec![], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -213,7 +213,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()); + let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -233,7 +233,7 @@ mod tests { params.insert(Value::from("inject_args"), Value::from(true)); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()); + let output = extension.calculate(¶ms, &vec!["jon".to_owned()], &HashMap::new()).unwrap(); assert!(output.is_some()); assert_eq!( @@ -261,7 +261,7 @@ mod tests { ); let extension = ScriptExtension::new(); - let output = extension.calculate(¶ms, &vec![], &vars); + let output = extension.calculate(¶ms, &vec![], &vars).unwrap(); assert!(output.is_some()); assert_eq!(