mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Pass assertion failure to done
This commit is contained in:
@@ -23,7 +23,11 @@ suite('workspace-namespace', () => {
|
||||
reg1.dispose();
|
||||
const reg2 = vscode.window.onDidWriteTerminalData(e => {
|
||||
reg2.dispose();
|
||||
assert.equal(e.data, 'testing\r\n');
|
||||
try {
|
||||
assert.equal(e.data, 'testing\r\n');
|
||||
} catch (e) {
|
||||
done(e);
|
||||
}
|
||||
term.dispose();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user