Spawn no more than 1 iframe in web tests. Using multiple iframes in DDK mode times out tests. Also set concurrency to 1 to guarantee that the test runner does not even attempt to parallelize tests. (#40630)

Spawn no more than 1 iframe in web tests. Using multiple iframes in DDK mode times out tests. Also set concurrency to 1 to guarantee that the test runner does not even attempt to parallelize tests.
This commit is contained in:
Yegor
2019-10-01 13:58:05 -07:00
committed by GitHub
parent c9d920f301
commit 8246785f3f
2 changed files with 14 additions and 6 deletions

View File

@@ -468,9 +468,9 @@ Future<void> _runTests() async {
Future<void> _runWebTests() async {
// TODO(yjbanov): re-enable when web test cirrus flakiness is resolved
await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), tests: <String>[
'test/foundation/',
'test/physics/',
// TODO(yjbanov): re-enable when flakiness is resolved
// 'test/foundation/',
// 'test/physics/',
// 'test/rendering/',
// 'test/services/',
// 'test/painting/',
@@ -801,6 +801,8 @@ Future<void> _runFlutterWebTestBatch(String workingDirectory, {
}) async {
final List<String> args = <String>[
'test',
if (_getCiProvider() == CiProviders.cirrus)
'--concurrency=1', // do not parallelize on Cirrus to reduce flakiness
'-v',
'--platform=chrome',
...?flutterTestArgs,