Fix that flutter test does not understand concurrency (#125942)

Close https://github.com/flutter/flutter/issues/125940

I will add tests if this PR looks roughly OK :)

The fix mainly mimics https://github.com/flutter/flutter/pull/115160 - just remove the default argument.

p.s. I ran into this bug when wanting to set concurrency in my dart_test.yaml for one set of my tests which I need to be executed without parallalization.
This commit is contained in:
fzyzcjy
2023-05-09 04:25:00 +08:00
committed by GitHub
parent 6b756ab5ff
commit 742a1b49e9
3 changed files with 7 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ dev_dependencies:
});
testUsingContext(
'Confirmation that the reporter and timeout args are not set by default',
'Confirmation that the reporter, timeout, and concurrency args are not set by default',
() async {
final FakePackageTest fakePackageTest = FakePackageTest();
@@ -175,6 +175,7 @@ dev_dependencies:
expect(fakePackageTest.lastArgs, isNot(contains('compact')));
expect(fakePackageTest.lastArgs, isNot(contains('--timeout')));
expect(fakePackageTest.lastArgs, isNot(contains('30s')));
expect(fakePackageTest.lastArgs, isNot(contains('--concurrency')));
}, overrides: <Type, Generator>{
FileSystem: () => fs,
ProcessManager: () => FakeProcessManager.any(),