[flutter_tools] Test that DAP process terminates at the end of a session (#108301)

This commit is contained in:
Danny Tuppeny
2022-08-02 21:44:06 +01:00
committed by GitHub
parent 384e315b8a
commit 14626c0a6d

View File

@@ -99,6 +99,13 @@ void main() {
'',
startsWith('Exited'),
]);
// If we're running with an out-of-process debug adapter, ensure that its
// own process shuts down after we terminated.
final DapTestServer server = dap.server;
if (server is OutOfProcessDapTestServer) {
await server.exitCode;
}
});
testWithoutContext('outputs useful message on invalid DAP protocol messages', () async {