Skip to content

Commit 9f6be3e

Browse files
authored
Fix fake_gcloud list() iteration (#8428)
1 parent a799001 commit 9f6be3e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/test/admin/exported_api_sync_test.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ void main() {
9999
});
100100
});
101101

102-
testWithProfile('deleted files + full sync', expectedLogMessages: [
103-
// TODO: review why we have unhandled errors here
104-
RegExp(r'^SEVERE Unhandled error in API handler \(incidentId: .*\)'),
105-
], fn: () async {
102+
testWithProfile('deleted files + full sync', fn: () async {
106103
await syncExportedApi();
107104
final oldRoot = await listExportedApi();
108105

pkg/fake_gcloud/lib/mem_storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class _Bucket implements Bucket {
317317
final isDirPrefix =
318318
prefix.isEmpty || (delimiter.isNotEmpty && prefix.endsWith(delimiter));
319319
final segments = <String>{};
320-
for (final name in _files.keys) {
320+
for (final name in [..._files.keys]) {
321321
bool matchesPrefix() {
322322
// without prefix, return everything
323323
if (prefix!.isEmpty) return true;

0 commit comments

Comments
 (0)