From fab9a0727428d9bd999bf78381b0c51e4c4f797b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 29 Apr 2024 15:39:22 +0300 Subject: feat(tvix/glue/tests): wrap TvixStoreIO with TvixIO This makes `` available in the testsuite. Change-Id: I04657b227c539edec86e5b6033e1016adcfce244 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11537 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: Connor Brewster --- tvix/glue/src/tests/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tvix/glue') diff --git a/tvix/glue/src/tests/mod.rs b/tvix/glue/src/tests/mod.rs index e66f484e3dad..f18cae37206e 100644 --- a/tvix/glue/src/tests/mod.rs +++ b/tvix/glue/src/tests/mod.rs @@ -14,6 +14,7 @@ use rstest::rstest; use crate::{ builtins::{add_derivation_builtins, add_fetcher_builtins, add_import_builtins}, + tvix_io::TvixIO, tvix_store_io::TvixStoreIO, }; @@ -50,7 +51,11 @@ fn eval_test(code_path: PathBuf, expect_success: bool) { Arc::new(DummyBuildService::default()), tokio_runtime.handle().clone(), )); - let mut eval = tvix_eval::Evaluation::new(tvix_store_io.clone() as Rc, true); + // Wrap with TvixIO, so )) as Box, + true, + ); eval.strict = true; add_derivation_builtins(&mut eval, tvix_store_io.clone()); -- cgit 1.4.1