Swap order of attach/stop in flutter_attach integration test (#21106)

This is a bit of a stab in the dark for a flake sometimes seen on bots (but I can't repro locally) #20822. Detaching from a Flutter app currently seems to terminate it, so it may be the cause of the "app not found" when trying to stop the app subsequently.

This change means we stop the app from the main process first, before terminating the attach process.
This commit is contained in:
Danny Tuppeny 2018-08-29 07:58:11 +01:00 committed by GitHub
parent cf764e3012
commit a9275d2154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@ void main() {
// We can't call stop() on both of these because they'll both try to stop the
// same app. Just quit the attach process and then send a stop to the original
// process.
await _flutterAttach.quit();
await _flutterRun.stop();
await _flutterAttach.quit();
tryToDelete(tempDir);
});