Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: pkg/intl/test/date_time_format_file_test_stub.dart

Issue 11477014: Throttle intl file tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/date_time_format_file_test_stub.dart
===================================================================
--- pkg/intl/test/date_time_format_file_test_stub.dart (revision 15993)
+++ pkg/intl/test/date_time_format_file_test_stub.dart (working copy)
@@ -6,7 +6,6 @@
* Tests date formatting and parsing using locale data read from the
* local file system.
*/
-
library date_time_format_file_test;
import '../lib/intl.dart';
@@ -25,11 +24,13 @@
}
void runEverything(Function getSubset) {
- // Initialize all locales and wait for them to finish before running tests.
- var futures = DateFormat.allLocalesWithSymbols().map(
+ // Initialize all locales sequentially before running tests. Be sure not
+ // to do it in parallel or we can run into ulimit problems on fast machines.
+ var futureList = Futures.forEach(DateFormat.allLocalesWithSymbols(),
(locale) => initializeDateFormatting(locale, dataDirectory));
+
test('Run all date formatting tests nested test', () {
- Futures.wait(futures).then(
+ futureList.then(
expectAsync1((results) => runDateTests(getSubset())));
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698