Dispose of all terminals before running task test

Fixes #142565
This commit is contained in:
Alex Ross
2022-02-09 14:06:09 +01:00
parent 6a9c6c2ff9
commit 5bdfec8311

View File

@@ -34,6 +34,7 @@ import { assertNoRpc } from '../utils';
suite('ShellExecution', () => {
test('Execution from onDidEndTaskProcess and onDidStartTaskProcess are equal to original', async () => {
window.terminals.forEach(terminal => terminal.dispose());
const executeDoneEvent: EventEmitter<void> = new EventEmitter();
const taskExecutionShouldBeSet: Promise<void> = new Promise(resolve => {
const disposable = executeDoneEvent.event(() => {