From 079ab62a8c5eee74cab25d2e06dff9d5cfb9c1ad Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Sun, 17 Nov 2024 16:18:12 +0200 Subject: [PATCH] chore(blockifier): use suggested function to get dir --- crates/blockifier/src/versioned_constants_test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/blockifier/src/versioned_constants_test.rs b/crates/blockifier/src/versioned_constants_test.rs index 7947afc52a7..bda9b793678 100644 --- a/crates/blockifier/src/versioned_constants_test.rs +++ b/crates/blockifier/src/versioned_constants_test.rs @@ -1,5 +1,6 @@ use glob::{glob, Paths}; use pretty_assertions::assert_eq; +use starknet_api::test_utils::path_in_resources; use super::*; @@ -8,7 +9,8 @@ use super::*; /// Returns all JSON files in the resources directory (should be all versioned constants files). fn all_jsons_in_dir() -> Paths { - glob(format!("{}/resources/*.json", env!("CARGO_MANIFEST_DIR")).as_str()).unwrap() + let pattern = path_in_resources(""); + glob(format!("{}/*.json", pattern.display()).as_str()).unwrap() } #[test]