diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-07 19:30:40 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-07 19:30:40 -0700 |
commit | d8f5f102f6f91487be0281316e581858ec4ca260 (patch) | |
tree | 5ac45611f23a6cfe9380432a8197366879ea2959 | |
parent | bc99a4402a71fbba7d26e4b79f7539df6ac87c91 (diff) | |
download | sncontinue-d8f5f102f6f91487be0281316e581858ec4ca260.tar.gz sncontinue-d8f5f102f6f91487be0281316e581858ec4ca260.tar.bz2 sncontinue-d8f5f102f6f91487be0281316e581858ec4ca260.zip |
fix: :white_check_mark: allow longer for python server to start in test
-rw-r--r-- | .vscode/settings.json | 4 | ||||
-rw-r--r-- | 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`); |