Sitelet https://github.com/flutter/flutter/pull/56387
Skip to content

[flutter_tools] reland remove flutter view cache - #56387

Merged
jonahwilliams merged 12 commits into
flutter:masterfrom
jonahwilliams:remove_flutter_view_cache
May 5, 2020
Merged

jonahwilliams merged 12 commits into
flutter:masterfrom
jonahwilliams:remove_flutter_view_cache

Conversation

@jonahwilliams

Copy link
Copy Markdown
Contributor

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.

@visibleForTesting Duration timeoutDelay = const Duration(seconds: 10),
}) async {
if (!device.supportsFlutterExit) {
if (!device.supportsFlutterExit || vmService == null) {

Copy link
Copy Markdown
Contributor 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

expect(fakeVmServiceHost.hasRemainingExpectations, false);
}));

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

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

NNBD when!

@jonahwilliams
jonahwilliams requested a review from jmagman May 5, 2020 18:27

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

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