@@ -393,7 +393,7 @@ mod tests {
393393 #[ tokio:: test]
394394 async fn test_str_replace_single_occurrence ( ) {
395395 let test_provider = TestProvider :: new ( ) ;
396- let test_dir = TestDir :: new ( ) . with_file ( ( "test.txt" , "hello world" ) ) . await ;
396+ let test_dir = TestDir :: new ( ) . with_file_sys ( ( "test.txt" , "hello world" ) , & test_provider ) . await ;
397397
398398 let tool = FsWrite :: StrReplace ( StrReplace {
399399 path : test_dir. join ( "test.txt" ) . to_string_lossy ( ) . to_string ( ) ,
@@ -411,7 +411,7 @@ mod tests {
411411 #[ tokio:: test]
412412 async fn test_str_replace_multiple_occurrences ( ) {
413413 let test_provider = TestProvider :: new ( ) ;
414- let test_dir = TestDir :: new ( ) . with_file ( ( "test.txt" , "foo bar foo" ) ) . await ;
414+ let test_dir = TestDir :: new ( ) . with_file_sys ( ( "test.txt" , "foo bar foo" ) , & test_provider ) . await ;
415415
416416 let tool = FsWrite :: StrReplace ( StrReplace {
417417 path : test_dir. join ( "test.txt" ) . to_string_lossy ( ) . to_string ( ) ,
@@ -429,7 +429,7 @@ mod tests {
429429 #[ tokio:: test]
430430 async fn test_str_replace_no_match ( ) {
431431 let test_provider = TestProvider :: new ( ) ;
432- let test_dir = TestDir :: new ( ) . with_file ( ( "test.txt" , "hello world" ) ) . await ;
432+ let test_dir = TestDir :: new ( ) . with_file_sys ( ( "test.txt" , "hello world" ) , & test_provider ) . await ;
433433
434434 let tool = FsWrite :: StrReplace ( StrReplace {
435435 path : test_dir. join ( "test.txt" ) . to_string_lossy ( ) . to_string ( ) ,
@@ -444,7 +444,7 @@ mod tests {
444444 #[ tokio:: test]
445445 async fn test_insert_at_line ( ) {
446446 let test_provider = TestProvider :: new ( ) ;
447- let test_dir = TestDir :: new ( ) . with_file ( ( "test.txt" , "line1\n line2\n line3" ) ) . await ;
447+ let test_dir = TestDir :: new ( ) . with_file_sys ( ( "test.txt" , "line1\n line2\n line3" ) , & test_provider ) . await ;
448448
449449 let tool = FsWrite :: Insert ( Insert {
450450 path : test_dir. join ( "test.txt" ) . to_string_lossy ( ) . to_string ( ) ,
@@ -461,7 +461,7 @@ mod tests {
461461 #[ tokio:: test]
462462 async fn test_insert_append ( ) {
463463 let test_provider = TestProvider :: new ( ) ;
464- let test_dir = TestDir :: new ( ) . with_file ( ( "test.txt" , "existing" ) ) . await ;
464+ let test_dir = TestDir :: new ( ) . with_file_sys ( ( "test.txt" , "existing" ) , & test_provider ) . await ;
465465
466466 let tool = FsWrite :: Insert ( Insert {
467467 path : test_dir. join ( "test.txt" ) . to_string_lossy ( ) . to_string ( ) ,
0 commit comments