Skip to content

Commit

Permalink
Remove a delay that should now be unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Sep 21, 2020
1 parent ae4511c commit 37d6eff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/extension/user_prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ function error(err: any) {
}

export async function handleNewProjects(logger: Logger, context: Context): Promise<void> {
// HACK: In order for tests to be able to intercept these commands we need to
// ensure they don't start before the test is running, so insert a delay when
// running tests.
if (process.env.DART_CODE_IS_TEST_RUN)
await new Promise((resolve) => setTimeout(resolve, 5000));
await Promise.all(getDartWorkspaceFolders().map(async (wf) => {
try {
await handleStagehandTrigger(logger, wf, DART_STAGEHAND_PROJECT_TRIGGER_FILE);
Expand Down

0 comments on commit 37d6eff

Please sign in to comment.