test(auth): align codex bootstrap expectations

This commit is contained in:
Vincent Koc
2026-04-18 07:34:53 -07:00
committed by Peter Steinberger
parent 78288e37ed
commit 20debfab90
3 changed files with 4 additions and 45 deletions

View File

@@ -54,6 +54,7 @@ describe("bridgeCodexAppServerStartOptions", () => {
const result = await bridgeCodexAppServerStartOptions({
startOptions: {
transport: "stdio",
command: "codex",
args: ["app-server"],
headers: { authorization: "Bearer dev-token" },
@@ -92,6 +93,7 @@ describe("bridgeCodexAppServerStartOptions", () => {
const agentDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-codex-app-server-"));
tempDirs.push(agentDir);
const startOptions = {
transport: "stdio" as const,
command: "codex",
args: ["app-server"],
headers: { authorization: "Bearer dev-token" },
@@ -133,8 +135,10 @@ describe("bridgeCodexAppServerStartOptions", () => {
await expect(
bridgeCodexAppServerStartOptions({
startOptions: {
transport: "stdio",
command: "codex",
args: ["app-server"],
headers: {},
},
agentDir,
}),