Skip to content

Commit 2081b6b

Browse files
zandersoDBowen33
authored andcommitted
In native_assets_test, ignore a failure to delete a temp directory (flutter#153223)
Tree closed on failures like: https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_mokey%20native_assets_android/6/overview
1 parent 76e66bc commit 2081b6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev/devicelab/lib/tasks/native_assets_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ Future<T> inTempDir<T>(Future<T> Function(Directory tempDirectory) fun) async {
216216
try {
217217
return await fun(tempDirectory);
218218
} finally {
219-
tempDirectory.deleteSync(recursive: true);
219+
try {
220+
tempDirectory.deleteSync(recursive: true);
221+
} catch (_) {
222+
// Ignore failures to delete a temporary directory.
223+
}
220224
}
221225
}

0 commit comments

Comments
 (0)