From d8f5f102f6f91487be0281316e581858ec4ca260 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 7 Aug 2023 19:30:40 -0700 Subject: fix: :white_check_mark: allow longer for python server to start in test --- .vscode/settings.json | 4 ++-- extension/src/test-suite/environmentSetup.test.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2195200a..856240e5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "python.defaultInterpreterPath": "${workspaceFolder}/continuedev/.venv/bin/python", -} \ No newline at end of file + "python.defaultInterpreterPath": "${workspaceFolder}/continuedev/.venv/bin/python3" +} diff --git a/extension/src/test-suite/environmentSetup.test.ts b/extension/src/test-suite/environmentSetup.test.ts index d9fcfb2c..9a478522 100644 --- a/extension/src/test-suite/environmentSetup.test.ts +++ b/extension/src/test-suite/environmentSetup.test.ts @@ -6,11 +6,12 @@ import { startContinuePythonServer } from "../activation/environmentSetup"; import fetch from "node-fetch"; describe("Can start python server", () => { - test("Can start python server", async () => { + test("Can start python server in under 10 seconds", async function () { + this.timeout(17_000); await startContinuePythonServer(); - await new Promise((resolve) => setTimeout(resolve, 500)); - + await new Promise((resolve) => setTimeout(resolve, 15_000)); + // Check if server is running const serverUrl = getContinueServerUrl(); const response = await fetch(`${serverUrl}/health`); -- cgit v1.2.3-70-g09d2