Skip to content

Computer use CLI for AI agents

fix: stop the inspector shutdown test failing on an expected reset

Lahfir22cad9ec2113
diff --git a/tools/inspector/test/server.test.mjs b/tools/inspector/test/server.test.mjs
index b315f5505..c63916ef8 100644
--- a/tools/inspector/test/server.test.mjs
+++ b/tools/inspector/test/server.test.mjs
@@ -22,6 +22,7 @@ test('shutdown closes incomplete HTTP connections and removes private state', {t
});
assert.equal((await readdir(root)).length, 1);
const connection = createConnection({host: '127.0.0.1', port});
+ connection.on('error', () => {});
t.after(() => connection.destroy());
await once(connection, 'connect');
connection.write('GET / HTTP/1.1\r\n');