Dispose of terminal at end of onDidChangeTerminalState test

This commit is contained in:
Daniel Imms
2021-08-13 07:00:41 -07:00
parent 4233679a93
commit ddcf2d6630

View File

@@ -241,6 +241,14 @@ import { assertNoRpc } from '../utils';
});
deepStrictEqual(eventState, { interactedWith: true });
deepStrictEqual(terminal.state, { interactedWith: true });
await new Promise<void>(r => {
disposables.push(window.onDidCloseTerminal(t => {
if (t === terminal) {
r();
}
}));
terminal.dispose();
});
});
// test('onDidChangeActiveTerminal should fire when new terminals are created', (done) => {