Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/dart_mcp_server/lib/src/mixins/flutter_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ base mixin FlutterLauncherSupport
} catch (e, s) {
log(LoggingLevel.error, 'Error launching Flutter application: $e\n$s');
if (process != null) {
processManager.killPid(process.pid);
process.kill();
// The exitCode handler will perform the rest of the cleanup.
}
return CallToolResult(
Expand Down
1 change: 0 additions & 1 deletion pkgs/dart_mcp_server/test/tools/flutter_launcher_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ void main() {
'TimeoutException',
]),
);
test.expect(mockProcessManager.killedPids, [processPid]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to look for the mocked processes here and then check if they were killed


server.shutdown();
client.shutdown();
Expand Down