| Index: tools/testing/dart/test_runner.dart
|
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
|
| index 95228efe6cb3e36829671340f07ddb509e54dd0b..e349dfc64f83c1a4d696db3ff60f53accdd116a7 100644
|
| --- a/tools/testing/dart/test_runner.dart
|
| +++ b/tools/testing/dart/test_runner.dart
|
| @@ -316,7 +316,7 @@ class BrowserTestOutputImpl extends TestOutputImpl {
|
| line.contains('Failed to run command. return code=1')) {
|
| // If we get the X server error, or DRT crashes with a core dump, retry
|
| // the test.
|
| - if ((testCase as Dynamic).numRetries > 0) {
|
| + if (testCase.dynamic.numRetries > 0) {
|
| requestRetry = true;
|
| }
|
| return true;
|
| @@ -551,16 +551,16 @@ class RunningProcess {
|
| }
|
| if (allowRetries && testCase.usesWebDriver
|
| && testCase.output.unexpectedOutput
|
| - && (testCase as Dynamic).numRetries > 0) {
|
| + && testCase.dynamic.numRetries > 0) {
|
| // Selenium tests can be flaky. Try rerunning.
|
| testCase.output.requestRetry = true;
|
| }
|
| if (testCase.output.requestRetry) {
|
| testCase.output.requestRetry = false;
|
| this.timedOut = false;
|
| - (testCase as Dynamic).numRetries--;
|
| + testCase.dynamic.numRetries--;
|
| print("Potential flake. Re-running ${testCase.displayName} "
|
| - "(${(testCase as Dynamic).numRetries} attempt(s) remains)");
|
| + "(${testCase.dynamic.numRetries} attempt(s) remains)");
|
| this.start();
|
| } else {
|
| testCase.completed();
|
|
|