Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

test(sdk): run the credential lock lifecycle once per source platform (#1957)

Michael D'Angelo3df5132fc716
diff --git a/sdk/typescript/tests-ts/runtime.test.ts b/sdk/typescript/tests-ts/runtime.test.ts
index 14db57e51..554bdc836 100644
--- a/sdk/typescript/tests-ts/runtime.test.ts
+++ b/sdk/typescript/tests-ts/runtime.test.ts
@@ -3322,22 +3322,7 @@ describe("runtime directories and plugin Python boundary", () => {
await release();
});
- test("protects active and stalled credential-lock owners and recovers after a crash with a reused PID", async () => {
- const root = await temporaryDirectory();
- await promisify(execFile)(
- process.execPath,
- [
- fileURLToPath(
- new URL("../scripts/fixtures/credential-lock.mjs", import.meta.url),
- ),
- new URL("../src/runtime.ts", import.meta.url).href,
- join(root, "state"),
- ],
- { timeout: 120_000, windowsHide: true },
- );
- }, 125_000);
-
- test("credential-lock fixture tolerates slow holder and legacy startup", async () => {
+ test("protects active and stalled credential-lock owners during slow legacy startup and recovers after a crash with a reused PID", async () => {
const root = await temporaryDirectory();
const runtime = join(root, "delayed-runtime.mjs");
await writeFile(