提交 f9307094 编写于 作者: C Christof Marti

Try fix timing issues

上级 5ce53561
......@@ -521,6 +521,7 @@ suite('window namespace tests', () => {
test('showWorkspaceFolderPick', async function () {
const p = window.showWorkspaceFolderPick(undefined);
await timeout();
await commands.executeCommand('workbench.action.acceptSelectedQuickOpenItem');
try {
await p;
......@@ -697,3 +698,7 @@ suite('window namespace tests', () => {
});
});
});
async function timeout(ms = 0): Promise<void> {
return new Promise<void>(resolve => setTimeout(() => resolve(), ms));
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册