Index: tools/testing/dart/test_runner.dart |
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
index 890b02acccbc1a2d53776d0deb90f887a5f3632d..91082bbbaf05c2ae8a49f15a663af6b9299c0e90 100644 |
--- a/tools/testing/dart/test_runner.dart |
+++ b/tools/testing/dart/test_runner.dart |
@@ -1019,8 +1019,9 @@ class CommandQueue { |
// If a command is part of many TestCases we set the timeout to be |
// the maximum over all [TestCase.timeout]s. At some point, we might |
// eliminate [TestCase.timeout] completely and move it to [Command]. |
- int timeout = |
- testCases.map((TestCase test) => test.timeout).fold(0, math.max); |
+ int timeout = testCases |
+ .map((TestCase test) => test.timeout) |
+ .fold(0, (int a, b) => math.max(a, b)); |
if (_verbose) { |
print('Running "${command.displayName}" command: $command'); |