clean up after test (#147941)

This commit is contained in:
Megan Rogge 2022-04-22 12:07:31 -07:00 committed by GitHub
parent 1206d80f56
commit 280460e3cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -32,10 +32,12 @@ import { assertNoRpc, poll } from '../utils';
suite('Terminal', () => {
let disposables: Disposable[] = [];
teardown(() => {
teardown(async () => {
assertNoRpc();
disposables.forEach(d => d.dispose());
disposables.length = 0;
const config = workspace.getConfiguration('terminal.integrated');
await config.update('shellIntegration.enabled', undefined);
});
test('sendText immediately after createTerminal should not throw', async () => {