Skip to content

Commit c89bb76

Browse files
committed
Remove ̀tests` folder when creating temp dir
1 parent e57806f commit c89bb76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mithril-common/src/test_utils/temp_dir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ macro_rules! temp_dir {
118118
() => {{
119119
fn f() {}
120120
let current_function_path = $crate::test_utils::format_current_function_path(f);
121+
let current_function_path = current_function_path.replace("/tests/", "/");
121122

122123
$crate::test_utils::TempDir::new(current_function_path, "").build_path()
123124
}};
@@ -129,6 +130,7 @@ macro_rules! temp_dir_create {
129130
() => {{
130131
fn f() {}
131132
let current_function_path = $crate::test_utils::format_current_function_path(f);
133+
let current_function_path = current_function_path.replace("/tests/", "/");
132134

133135
$crate::test_utils::TempDir::new(current_function_path, "").build()
134136
}};
@@ -260,7 +262,6 @@ mod tests {
260262
.join("mithril_common")
261263
.join("test_utils")
262264
.join("temp_dir")
263-
.join("tests")
264265
.join("creating_temp_dir_base_on_current_function"),
265266
temp_dir!(),
266267
);
@@ -274,7 +275,6 @@ mod tests {
274275
.join("mithril_common")
275276
.join("test_utils")
276277
.join("temp_dir")
277-
.join("tests")
278278
.join("creating_temp_dir_base_on_current_async_function"),
279279
temp_dir!(),
280280
);

0 commit comments

Comments
 (0)