In native_assets_test, ignore a failure to delete a temp directory (#153223)
Tree closed on failures like: https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_mokey%20native_assets_android/6/overview
This commit is contained in:
parent
7008f4ef0d
commit
306e9e46f1
@ -216,6 +216,10 @@ Future<T> inTempDir<T>(Future<T> Function(Directory tempDirectory) fun) async {
|
||||
try {
|
||||
return await fun(tempDirectory);
|
||||
} finally {
|
||||
try {
|
||||
tempDirectory.deleteSync(recursive: true);
|
||||
} catch (_) {
|
||||
// Ignore failures to delete a temporary directory.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user