Skip to content

Commit

Permalink
Fix fake_gcloud list() iteration (dart-lang#8428)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Dec 20, 2024
1 parent a799001 commit 9f6be3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions app/test/admin/exported_api_sync_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion pkg/fake_gcloud/lib/mem_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class _Bucket implements Bucket {
final isDirPrefix =
prefix.isEmpty || (delimiter.isNotEmpty && prefix.endsWith(delimiter));
final segments = <String>{};
for (final name in _files.keys) {
for (final name in [..._files.keys]) {
bool matchesPrefix() {
// without prefix, return everything
if (prefix!.isEmpty) return true;
Expand Down

0 comments on commit 9f6be3e

Please sign in to comment.