Skip to content

Commit 6162ef5

Browse files
committed
Fix tests
1 parent 0ca5504 commit 6162ef5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/infra/core/tests/tests/test_compact_service_impl.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,9 @@ impl CompactTestHarness {
859859
) -> Self {
860860
let temp_dir = tempfile::tempdir().unwrap();
861861
let run_info_dir = temp_dir.path().join("run");
862+
let datasets_dir = temp_dir.path().join("datasets");
862863
std::fs::create_dir(&run_info_dir).unwrap();
864+
std::fs::create_dir(&datasets_dir).unwrap();
863865
let current_date_tame = Utc.with_ymd_and_hms(2050, 1, 1, 12, 0, 0).unwrap();
864866

865867
let catalog = dill::CatalogBuilder::new()
@@ -870,7 +872,7 @@ impl CompactTestHarness {
870872
.bind::<dyn auth::DatasetActionAuthorizer, TDatasetAuthorizer>()
871873
.add_builder(
872874
DatasetRepositoryLocalFs::builder()
873-
.with_root(temp_dir.path().join("datasets"))
875+
.with_root(datasets_dir)
874876
.with_multi_tenant(false),
875877
)
876878
.bind::<dyn DatasetRepository, DatasetRepositoryLocalFs>()

0 commit comments

Comments
 (0)