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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user