File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mithril-common/src/test_utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ macro_rules! temp_dir {
118
118
( ) => { {
119
119
fn f( ) { }
120
120
let current_function_path = $crate:: test_utils:: format_current_function_path( f) ;
121
+ let current_function_path = current_function_path. replace( "/tests/" , "/" ) ;
121
122
122
123
$crate:: test_utils:: TempDir :: new( current_function_path, "" ) . build_path( )
123
124
} } ;
@@ -129,6 +130,7 @@ macro_rules! temp_dir_create {
129
130
( ) => { {
130
131
fn f( ) { }
131
132
let current_function_path = $crate:: test_utils:: format_current_function_path( f) ;
133
+ let current_function_path = current_function_path. replace( "/tests/" , "/" ) ;
132
134
133
135
$crate:: test_utils:: TempDir :: new( current_function_path, "" ) . build( )
134
136
} } ;
@@ -260,7 +262,6 @@ mod tests {
260
262
. join( "mithril_common" )
261
263
. join( "test_utils" )
262
264
. join( "temp_dir" )
263
- . join( "tests" )
264
265
. join( "creating_temp_dir_base_on_current_function" ) ,
265
266
temp_dir!( ) ,
266
267
) ;
@@ -274,7 +275,6 @@ mod tests {
274
275
. join( "mithril_common" )
275
276
. join( "test_utils" )
276
277
. join( "temp_dir" )
277
- . join( "tests" )
278
278
. join( "creating_temp_dir_base_on_current_async_function" ) ,
279
279
temp_dir!( ) ,
280
280
) ;
You can’t perform that action at this time.
0 commit comments