Skip to content

Commit 4874390

Browse files
committed
test: align startServer attestation-secret call sites with the dev deps seam
1 parent a90981e commit 4874390

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/cli-catalog-prewarm.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe("catalog prewarm on handleStart bind", () => {
5353

5454
test("handleStart schedules catalog prewarm immediately after a successful bind", async () => {
5555
const cli = (await readText("src/cli/index.ts")).replace(/\r\n/g, "\n");
56-
const bindIdx = cli.indexOf("server = startServer(port, localAttestationSecret);");
56+
const bindIdx = cli.indexOf("server = startServer(port, { localAttestationSecret });");
5757
const prewarmIdx = cli.indexOf("scheduleCatalogPrewarm()");
5858
const breakIdx = cli.indexOf("\n break;", bindIdx);
5959

‎tests/server-management-auth.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe("management and data-plane credential separation", () => {
9797
test("healthz proves the listener owns the protected runtime secret", async () => {
9898
const secret = "A".repeat(43);
9999
const challenge = "B".repeat(43);
100-
const server = startServer(0, secret);
100+
const server = startServer(0, { localAttestationSecret: secret });
101101
try {
102102
const health = await fetch(new URL("/healthz", server.url), {
103103
headers: { [LOCAL_ATTESTATION_CHALLENGE_HEADER]: challenge },

‎tests/update-notify.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe("cli wiring", () => {
124124
const cli = await readText("src/cli/index.ts");
125125
const promptIndex = cli.indexOf("await maybeShowUpdatePrompt()");
126126
const portIndex = cli.indexOf("let port = await chooseListenPort");
127-
const serverIndex = cli.indexOf("startServer(port, localAttestationSecret)");
127+
const serverIndex = cli.indexOf("startServer(port, { localAttestationSecret })");
128128
expect(promptIndex).toBeGreaterThan(-1);
129129
expect(portIndex).toBeGreaterThan(-1);
130130
expect(promptIndex).toBeLessThan(portIndex);

0 commit comments

Comments
 (0)