-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[flutter_tools] remove even more mocks #81618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] remove even more mocks #81618
Conversation
@@ -189,68 +161,6 @@ void main() { | |||
throwsA(isA<ProcessException>()), | |||
); | |||
}); | |||
|
|||
testWithoutContext(' flaky process fails without retry', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests have been skipped for months, lets delete and start again another time
|
||
const String xcodebuild = '/usr/bin/xcodebuild'; | ||
|
||
void main() { | ||
group('MockProcessManager', () { | ||
mocks.MockProcessManager processManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be doing the timeout and restart anymore
|
||
testUsingContext('Correctly performs a full refresh on attached chrome device.', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is testing a mock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, removing dead code from mocks.dart can be addressed in another PR, up to you.
import '../../src/mocks.dart' show MockProcessManager, | ||
flakyProcessFactory; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MockProcessManager
, flakyProcessFactory
, and _ProcessFactory
look dead on this PR, if you'd like the joy of deleting those as well.
In fact if you move MockAndroidSdk
into android_sdk_test
you can delete mocks.dart totally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh thats right, I already landed the PR that removed that usage. Will update
This pull request is not suitable for automatic merging in its current state.
|
Compile failure is wrong base PR. this is a testonly change and will not affect g3 |
Work towards #71511