mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
Reenable chat test (#203706)
I think this isn't an issue with the test- every time it fails, we see "The Web Worker Extension Host did not start in 60s". The chat tests are the first tests, and so they just time out due to being affected by the slow startup. That EH timeout issue looks old. Fix #203429
This commit is contained in:
parent
3fe7086daf
commit
c15e48bc27
|
@ -7,7 +7,6 @@
|
|||
"enabledApiProposals": [
|
||||
"authSession",
|
||||
"chatAgents2",
|
||||
"chatVariables",
|
||||
"contribViewsRemote",
|
||||
"contribStatusBarItems",
|
||||
"createFileSystemWatcher",
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'mocha';
|
|||
import { CancellationToken, chat, ChatAgentRequest, ChatVariableLevel, Disposable, interactive, InteractiveSession, ProviderResult } from 'vscode';
|
||||
import { assertNoRpc, closeAllEditors, DeferredPromise, disposeAll } from '../utils';
|
||||
|
||||
suite.skip('chat', () => {
|
||||
suite('chat', () => {
|
||||
|
||||
let disposables: Disposable[] = [];
|
||||
setup(() => {
|
||||
|
@ -48,9 +48,9 @@ suite.skip('chat', () => {
|
|||
test('agent and slash command', async () => {
|
||||
const deferred = getDeferredForRequest();
|
||||
interactive.sendInteractiveRequestToProvider('provider', { message: '@agent /hello friend' });
|
||||
const lastResult = await deferred.p;
|
||||
assert.deepStrictEqual(lastResult.slashCommand, { name: 'hello', description: 'Hello' });
|
||||
assert.strictEqual(lastResult.prompt, 'friend');
|
||||
const request = await deferred.p;
|
||||
assert.deepStrictEqual(request.subCommand, 'hello');
|
||||
assert.strictEqual(request.prompt, 'friend');
|
||||
});
|
||||
|
||||
test('agent and variable', async () => {
|
||||
|
@ -62,8 +62,8 @@ suite.skip('chat', () => {
|
|||
|
||||
const deferred = getDeferredForRequest();
|
||||
interactive.sendInteractiveRequestToProvider('provider', { message: '@agent hi #myVar' });
|
||||
const lastResult = await deferred.p;
|
||||
assert.strictEqual(lastResult.prompt, 'hi [#myVar](values:myVar)');
|
||||
assert.strictEqual(lastResult.variables['myVar'][0].value, 'myValue');
|
||||
const request = await deferred.p;
|
||||
assert.strictEqual(request.prompt, 'hi [#myVar](values:myVar)');
|
||||
assert.strictEqual(request.variables['myVar'][0].value, 'myValue');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue