Skip to content

Commit 723f528

Browse files
committed
decrease sleep in updating items
1 parent fc41aed commit 723f528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode-client/testcontrollermanager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class TestControllerManager {
298298
}
299299

300300
// TODO: we need a sleep after deletion here, it seem's there is a bug in vscode
301-
if (this.removeNotAddedTestItems(item, addedIds)) await sleep(1000);
301+
if (this.removeNotAddedTestItems(item, addedIds)) await sleep(500);
302302

303303
for (const test of tests ?? []) {
304304
await this.refreshItem(this.addOrUpdateTestItem(item, test), token);
@@ -331,7 +331,7 @@ export class TestControllerManager {
331331
}
332332

333333
// TODO: we need a sleep after deletion here, it seem's there is a bug in vscode
334-
if (this.removeNotAddedTestItems(undefined, addedIds)) await sleep(1000);
334+
if (this.removeNotAddedTestItems(undefined, addedIds)) await sleep(500);
335335
}
336336
}
337337

0 commit comments

Comments
 (0)