Unverified Commit a08a2110 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Ignore app.stop events received before the app.detach response in attach...

Ignore app.stop events received before the app.detach response in attach integration tests (#128593)

The app.detach command will close the VM service connection, which yields an app.stop event in the daemon protocol.  The daemon does not guarantee any ordering between this event and the response to the app.detach.

See https://github.com/flutter/flutter/issues/128546
parent 5047690b
......@@ -757,7 +757,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
// to throw if it sees an app.stop event before the response to this request.
final Future<Map<String, Object?>> responseFuture = _waitFor(
id: requestId,
ignoreAppStopEvent: method == 'app.stop',
ignoreAppStopEvent: method == 'app.stop' || method == 'app.detach',
);
_process?.stdin.writeln(jsonEncoded);
final Map<String, Object?> response = await responseFuture;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment