这是indexloc提供的服务,不要输入任何密码
Skip to content

[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

Merged

Conversation

jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented May 1, 2021

Work towards #71511

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 1, 2021
@google-cla google-cla bot added the cla: yes label May 1, 2021
@@ -189,68 +161,6 @@ void main() {
throwsA(isA<ProcessException>()),
);
});

testWithoutContext(' flaky process fails without retry', () async {
Copy link
Contributor Author

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;
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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

@jonahwilliams jonahwilliams requested review from jmagman and christopherfujino and removed request for jmagman May 3, 2021 16:37
Copy link
Member

@jmagman jmagman left a 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.

Comment on lines -20 to -21
import '../../src/mocks.dart' show MockProcessManager,
flakyProcessFactory;
Copy link
Member

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.

Copy link
Contributor Author

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

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Windows module_test has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Windows tool_integration_tests_2_5 has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Windows module_host_with_custom_build_test has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jonahwilliams
Copy link
Contributor Author

Compile failure is wrong base PR. this is a testonly change and will not affect g3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants