Skip to content

Commit 82d6990

Browse files
committed
Update copy_file_test.dart
1 parent 8b7f6c6 commit 82d6990

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkgs/io_file/test/copy_file_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ void tests(FileUtils utils, FileSystem fs) {
6969
final newPath = '$tmp/file2';
7070
utils.createBinaryFile(oldPath, data);
7171
(fs as WindowsFileSystem).setMetadata(oldPath, isReadOnly: true);
72-
addTearDown(
73-
() => (fs as WindowsFileSystem).setMetadata(oldPath, isReadOnly: false),
74-
);
72+
addTearDown(() => fs.setMetadata(oldPath, isReadOnly: false));
7573

7674
fs.copyFile(oldPath, newPath);
7775

0 commit comments

Comments
 (0)