mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-01 06:42:06 +01:00
test(runner): await failed admission lease release
This commit is contained in:
1 parent
981fb0fe86
commit
183b0124de
1 file changed
+12
-6
@@ -604,12 +604,18 @@ describe("ACPX runtime host", () => {
|
||||
code: "ENOENT",
|
||||
});
|
||||
});
|
||||
const contender = await stageManagedCodexCredential({
|
||||
agentHomeDirectory: credentialHome,
|
||||
environment: {
|
||||
PAPERCLIP_ACPX_CODEX_AUTH_JSON_SECRET: '{"owner":"contender"}',
|
||||
},
|
||||
});
|
||||
// File removal precedes kernel lease release. Wait for the lease itself so
|
||||
// this assertion cannot race between those two ordered cleanup steps.
|
||||
const contender = await vi.waitFor(
|
||||
() =>
|
||||
stageManagedCodexCredential({
|
||||
agentHomeDirectory: credentialHome,
|
||||
environment: {
|
||||
PAPERCLIP_ACPX_CODEX_AUTH_JSON_SECRET: '{"owner":"contender"}',
|
||||
},
|
||||
}),
|
||||
{ timeout: 5_000 },
|
||||
);
|
||||
await contender.close();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user