Fix broken test on Linux
This commit is contained in:
parent
727d738615
commit
7a688ab291
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue
Block a user