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

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 () => {