Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14626c0

Browse files
authored
[flutter_tools] Test that DAP process terminates at the end of a session (#108301)
1 parent 384e315 commit 14626c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ void main() {
9999
'',
100100
startsWith('Exited'),
101101
]);
102+
103+
// If we're running with an out-of-process debug adapter, ensure that its
104+
// own process shuts down after we terminated.
105+
final DapTestServer server = dap.server;
106+
if (server is OutOfProcessDapTestServer) {
107+
await server.exitCode;
108+
}
102109
});
103110

104111
testWithoutContext('outputs useful message on invalid DAP protocol messages', () async {

0 commit comments

Comments
 (0)