fix(tapbundle_serverside): add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests

This commit is contained in:
2026-03-27 18:23:42 +00:00
parent 7490da22c0
commit 2946169360
10 changed files with 151 additions and 152 deletions

View File

@@ -83,6 +83,9 @@ export class ChromiumRuntimeAdapter extends RuntimeAdapter {
throw new Error('Could not find a free WebSocket port in range 30000-40000');
}
// Stop the smartnetwork instance to release the Rust bridge process
await smartnetwork.stop();
// Log selected ports for debugging
if (!this.logger.options.quiet) {
console.log(`Selected ports - HTTP: ${httpPort}, WebSocket: ${wsPort}`);