Path: blob/main/src/vs/platform/agentHost/test/node/protocol/agentHostServer.integrationTest.ts
13405 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { PROTOCOL_VERSION } from '../../../common/state/sessionCapabilities.js';6import { IServerHandle, startServer, TestProtocolClient } from './testHelpers.js';78suite('Agent Host Server', function () {910let server: IServerHandle;1112suiteSetup(async function () {13this.timeout(15_000);14server = await startServer({ quiet: false });15});1617suiteTeardown(function () {18server.process.kill();19});2021test('starts with production agent services registered', async function () {22this.timeout(10_000);2324const client = new TestProtocolClient(server.port);25try {26await client.connect();27await client.call('initialize', { protocolVersion: PROTOCOL_VERSION, clientId: 'test-agent-host-server-services' });28} finally {29client.close();30}31});32});333435