Revert "[devicelab] handle missed lifecycle messages. (#156596)" (#157293)

This reverts commit f1f83aa909c0d6bf39ad8274ac68e48c20825c2b.

With https://github.com/flutter/engine/pull/55933 this should not be needed.
This commit is contained in:
Jason Simmons 2024-10-21 14:50:04 -07:00 committed by GitHub
parent 4b169a81ea
commit bf6c990765
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,10 +32,7 @@ class BackButtonMemoryTest extends MemoryTest {
// Push back button, wait for it to be seen by the Flutter app.
prepareForNextMessage('AppLifecycleState.paused');
await device!.shellExec('input', <String>['keyevent', 'KEYCODE_BACK']);
// Note: post UI/platform merge, we consistently miss this message. From
// local logcat it seems to be printed but it does not reach the tool.
await receivedNextMessage?.timeout(const Duration(seconds: 4), onTimeout: () {});
await receivedNextMessage;
// Give Android time to settle (e.g. run GCs) after closing the app.
await Future<void>.delayed(const Duration(milliseconds: 100));