Skip to content

Commit f3c1acb

Browse files
committed
Fixup test
1 parent cf0361b commit f3c1acb

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/integration-tests/testexplorer/TestExplorerIntegration.test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -553,16 +553,9 @@ suite("Test Explorer Suite", function () {
553553
// Wait for the next tick to cancel the test run so that
554554
// handlers have time to set up.
555555
await new Promise<void>(resolve => {
556-
setTimeout(async () => {
556+
setImmediate(async () => {
557557
void targetProfile.runHandler(request, secondRunTokenSource.token);
558-
resolve();
559-
});
560-
});
561-
562-
// Wait for the next tick to cancel the test run so that
563-
// handlers have time to set up.
564-
await new Promise<void>(resolve => {
565-
setImmediate(() => {
558+
await eventPromise(testExplorer.onCreateTestRun);
566559
secondRunTokenSource.cancel();
567560
resolve();
568561
});

0 commit comments

Comments
 (0)