Commit dfb6198f authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Make the `flutter test` tests resilient to startup lock (#8941)

parent 90799e44
...@@ -73,6 +73,8 @@ Future<Null> _testFile(String testName, String workingDirectory, String testDire ...@@ -73,6 +73,8 @@ Future<Null> _testFile(String testName, String workingDirectory, String testDire
expect(exec.exitCode, isNonZero); expect(exec.exitCode, isNonZero);
final List<String> output = exec.stdout.split('\n'); final List<String> output = exec.stdout.split('\n');
if (output.first == 'Waiting for another flutter command to release the startup lock...')
output.removeAt(0);
output.add('<<stderr>>'); output.add('<<stderr>>');
output.addAll(exec.stderr.split('\n')); output.addAll(exec.stderr.split('\n'));
final List<String> expectations = fs.file(fullTestExpectation).readAsLinesSync(); final List<String> expectations = fs.file(fullTestExpectation).readAsLinesSync();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment