mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Try fix timing issues
This commit is contained in:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user