mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Dispose of terminal at end of onDidChangeTerminalState test
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user