Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diksipav committed Jan 20, 2025
1 parent bbc010e commit 171f952
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/driver/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ export const getServerCommand = (
strictSecurity = true,
): { args: string[]; availableFeatures: string[] } => {
const availableFeatures: string[] = [];
const srvcmd = process.env.GEL_SERVER_BIN || "gel-server";
console.log("DIDI process.env.GEL_SERVER_BIN", process.env.GEL_SERVER_BIN);
console.log(
"DIDI process.env.EDGEDB_SERVER_BIN",
process.env.EDGEDB_SERVER_BIN,
);
const srvcmd =
process.env.GEL_SERVER_BIN || process.env.EDGEDB_SERVER_BIN || "gel-server";

let args = [srvcmd];
if (process.platform === "win32") {
Expand Down Expand Up @@ -127,7 +133,8 @@ export const getServerCommand = (
`--security=${strictSecurity ? "strict" : "insecure_dev_mode"}`,
"--bootstrap-command=ALTER ROLE edgedb { SET password := 'edgedbtest' }",
];

console.log("didi args", args);
console.log("didi availableFeatures", availableFeatures);
return { args, availableFeatures };
};

Expand All @@ -146,7 +153,9 @@ export const startServer = async (
}

const maybeEnvWithDevMode =
process.env.GEL_SERVER_BIN || process.env.CI
process.env.GEL_SERVER_BIN ||
process.env.EDGEDB_SERVER_BIN ||
process.env.CI
? {}
: {
__EDGEDB_DEVMODE: "1",
Expand Down

0 comments on commit 171f952

Please sign in to comment.