Skip to content
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] reland remove flutter view cache #56387

Merged
merged 12 commits into from May 5, 2020

Conversation

jonahwilliams
Copy link
Member

Description

Fixes #56194

Remove caching of FlutterView and poll forever if the list of flutter views is empty.

Added test for missing release mode logic.

Future<void> exitApps({
@visibleForTesting Duration timeoutDelay = const Duration(seconds: 10),
}) async {
if (!device.supportsFlutterExit) {
if (!device.supportsFlutterExit || vmService == null) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix

@@ -811,10 +818,20 @@ void main() {
expect(fakeVmServiceHost.hasRemainingExpectations, false);
}));

test('FlutterDevice can exit from a release mode isolate with no VmService', () => testbed.run(() async {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the test

@jonahwilliams
Copy link
Member Author

NNBD when!

@jonahwilliams jonahwilliams requested a review from jmagman May 5, 2020 18:27
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

@jonahwilliams jonahwilliams merged commit 9b7b9d7 into flutter:master May 5, 2020
@jonahwilliams jonahwilliams deleted the remove_flutter_view_cache branch May 5, 2020 19:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error connecting to the service protocol: No Flutter view is available on "device_name"
3 participants