Index: pkg/intl/test/date_time_format_local_test_stub.dart |
diff --git a/pkg/intl/test/date_time_format_local_test_stub.dart b/pkg/intl/test/date_time_format_local_test_stub.dart |
index 0556cd586649c720b1c9df2b32fdb736a7cc546b..6a5225d75ee4a4740048da076985724f389db915 100644 |
--- a/pkg/intl/test/date_time_format_local_test_stub.dart |
+++ b/pkg/intl/test/date_time_format_local_test_stub.dart |
@@ -9,6 +9,7 @@ |
library date_time_format_test; |
+import 'dart:async'; |
import '../lib/intl.dart'; |
import '../lib/date_time_patterns.dart'; |
import '../lib/date_symbol_data_local.dart'; |
@@ -24,7 +25,8 @@ runWith([Function getSubset]) { |
void runEverything(Function getSubset) { |
// Initialize all locales and wait for them to finish before running tests. |
- var futures = DateFormat.allLocalesWithSymbols().map( |
- (locale) => initializeDateFormatting(locale, null)); |
+ var futures = DateFormat.allLocalesWithSymbols() |
+ .mappedBy((locale) => initializeDateFormatting(locale, null)) |
+ .toList(); |
Futures.wait(futures).then((results) => runDateTests(getSubset())); |
} |