Index: test/runner/compact_reporter_test.dart |
diff --git a/test/runner/compact_reporter_test.dart b/test/runner/compact_reporter_test.dart |
index 883890cc1185523ebe0e1d8708a002cd5dc3ce2c..88eb98cd3a5a40031b880dd2a6b6a5cf4409e939 100644 |
--- a/test/runner/compact_reporter_test.dart |
+++ b/test/runner/compact_reporter_test.dart |
@@ -232,7 +232,10 @@ void main() { |
}); |
} |
-void _expectReport(String tests, String expected, {List<String> args}) { |
+void _expectReport(String tests, String expected, {List<String> args, |
+ int concurrency}) { |
+ if (concurrency == null) concurrency = 1; |
+ |
var dart = """ |
import 'dart:async'; |
@@ -247,6 +250,7 @@ $tests |
new File(p.join(path, "test.dart")).writeAsStringSync(dart); |
if (args == null) args = []; |
args = args.toList()..add("test.dart"); |
+ args.add("--concurrency=$concurrency"); |
var result = runUnittest(args, workingDirectory: path); |
// Convert CRs into newlines, remove excess trailing whitespace, and trim |