Skip to content

Commit 79f6060

Browse files
committed
refactor: use different default binary path
1 parent 51b9196 commit 79f6060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/utils/runCodeServerCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { exec } from "child_process"
2+
import path from "path";
23
import { promisify } from "util"
34

45
/**
56
*
67
* A helper function for integration tests to run code-server commands.
78
*/
89
export async function runCodeServerCommand(argv: string[]): Promise<{ stdout: string; stderr: string }> {
9-
const CODE_SERVER_COMMAND = process.env.CODE_SERVER_PATH || "/var/tmp/coder/code-server/bin/code-server"
10+
const CODE_SERVER_COMMAND = process.env.CODE_SERVER_PATH || path.resolve("../../release-standalone/bin/code-server")
1011
const { stdout, stderr } = await promisify(exec)(`${CODE_SERVER_COMMAND} ${argv.join(" ")}`)
1112

1213
return { stdout, stderr }

0 commit comments

Comments
 (0)