💚 testing ci server start
This commit is contained in:
parent
e103ea46aa
commit
ba5bddaaca
3 changed files with 6 additions and 4 deletions
|
|
@ -241,7 +241,7 @@ function runExecutable(path: string) {
|
|||
const child = spawn(path, settings);
|
||||
|
||||
// Either unref to avoid zombie process, or listen to events because you can
|
||||
if (os.platform() === "win32") {
|
||||
if (os.platform() === "win32" || true) {
|
||||
child.stdout.on("data", (data: any) => {
|
||||
console.log(`stdout: ${data}`);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import { startContinuePythonServer } from "../activation/environmentSetup";
|
|||
import fetch from "node-fetch";
|
||||
|
||||
describe("Can start python server", () => {
|
||||
test("Can start python server in under 80 seconds", async function () {
|
||||
const allowedTime = 120_000;
|
||||
test("Can start python server in under 80 seconds", async function (done) {
|
||||
const allowedTime = 80_000;
|
||||
this.timeout(allowedTime + 10_000);
|
||||
|
||||
console.log("Starting server in test...");
|
||||
|
|
@ -22,5 +22,7 @@ describe("Can start python server", () => {
|
|||
console.log("Server URL: ", serverUrl);
|
||||
const response = await fetch(`${serverUrl}/health`);
|
||||
assert.equal(response.status, 200);
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ Based on your instructions, here is the SQL query I have generated to answer the
|
|||
|
||||
|
||||
def sqlcoder_template_messages(schema: str = SQL_CODER_DEFAULT_SCHEMA):
|
||||
if schema == "<MY_DATABASE_SCHEMA>" or schema == "":
|
||||
if schema in {"<MY_DATABASE_SCHEMA>", ""}:
|
||||
schema = SQL_CODER_DEFAULT_SCHEMA
|
||||
|
||||
def fn(msgs):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue