From 028076dfcbc92db72ac7a256bbd5dc63ca20102b Mon Sep 17 00:00:00 2001 From: printfn Date: Mon, 31 Oct 2022 14:42:50 +1300 Subject: [PATCH] Fix flaky unit tests due to non-existent cache --- tests/all/utils/fixture.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/all/utils/fixture.rs b/tests/all/utils/fixture.rs index d42885d..13f9e79 100644 --- a/tests/all/utils/fixture.rs +++ b/tests/all/utils/fixture.rs @@ -322,7 +322,9 @@ impl Fixture { } pub fn cache(&self) -> Cache { - Cache::at(&self.cache_dir()) + let cache_dir = self.cache_dir(); + fs::create_dir_all(&cache_dir).unwrap(); + Cache::at(&cache_dir) } /// The `step_install_wasm_bindgen` and `step_run_wasm_bindgen` steps only