diff options
Diffstat (limited to 'tvix/eval/src/tests/mod.rs')
-rw-r--r-- | tvix/eval/src/tests/mod.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tvix/eval/src/tests/mod.rs b/tvix/eval/src/tests/mod.rs index e3d3445a45ac..d8b593ae9967 100644 --- a/tvix/eval/src/tests/mod.rs +++ b/tvix/eval/src/tests/mod.rs @@ -117,11 +117,8 @@ fn eval_test(code_path: PathBuf, expect_success: bool) { fn identity(#[files("src/tests/tvix_tests/identity-*.nix")] code_path: PathBuf) { let code = std::fs::read_to_string(code_path).expect("should be able to read test code"); - let eval = crate::Evaluation { - strict: true, - io_handle: Box::new(crate::StdIO) as Box<dyn EvalIO>, - ..Default::default() - }; + let mut eval = crate::Evaluation::new(Box::new(crate::StdIO) as Box<dyn EvalIO>, false); + eval.strict = true; let result = eval.evaluate(&code, None); assert!( |