Fix timing issue (fixes #61748)

This commit is contained in:
Christof Marti
2018-10-29 11:29:53 +01:00
parent 0d98745507
commit ee0815204c
4 changed files with 28 additions and 35 deletions

View File

@@ -422,6 +422,7 @@ suite('window namespace tests', () => {
canPickMany: true
});
const first = new Promise(resolve => resolves.push(resolve));
await new Promise(resolve => setTimeout(resolve, 10)); // Allow UI to update.
await commands.executeCommand('workbench.action.quickOpenSelectNext');
assert.equal(await first, 'eins');
await commands.executeCommand('workbench.action.quickPickManyToggle');