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:
Zachary Anderson 2024-08-10 09:14:55 -07:00 committed by GitHub
parent 7008f4ef0d
commit 306e9e46f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
}
}
}