diff --git a/app/test/admin/exported_api_sync_test.dart b/app/test/admin/exported_api_sync_test.dart index 12f6800ab9..0d68a5f87a 100644 --- a/app/test/admin/exported_api_sync_test.dart +++ b/app/test/admin/exported_api_sync_test.dart @@ -99,10 +99,7 @@ void main() { }); }); - testWithProfile('deleted files + full sync', expectedLogMessages: [ - // TODO: review why we have unhandled errors here - RegExp(r'^SEVERE Unhandled error in API handler \(incidentId: .*\)'), - ], fn: () async { + testWithProfile('deleted files + full sync', fn: () async { await syncExportedApi(); final oldRoot = await listExportedApi(); diff --git a/pkg/fake_gcloud/lib/mem_storage.dart b/pkg/fake_gcloud/lib/mem_storage.dart index 2c8e02ba43..57f5b75761 100644 --- a/pkg/fake_gcloud/lib/mem_storage.dart +++ b/pkg/fake_gcloud/lib/mem_storage.dart @@ -317,7 +317,7 @@ class _Bucket implements Bucket { final isDirPrefix = prefix.isEmpty || (delimiter.isNotEmpty && prefix.endsWith(delimiter)); final segments = {}; - for (final name in _files.keys) { + for (final name in [..._files.keys]) { bool matchesPrefix() { // without prefix, return everything if (prefix!.isEmpty) return true;