Merge branch 'codex/work-folders-staging-hardening-refresh' into codex/work-folders-remote-recovery-refresh

* codex/work-folders-staging-hardening-refresh:
  test(daytona): retain explicit destroy failure coverage
This commit is contained in:
Dotta 2026-09-11 17:22:02 -05:00
commit c9a46226a6
1 changed files with 2 additions and 1 deletions

View File

@ -1707,7 +1707,8 @@ describe("Daytona sandbox provider plugin", () => {
it("deletes the session at destroy even when the sandbox delete throws", async () => {
process.env.DAYTONA_API_KEY = "host-key";
const sandbox = createMockSandbox();
mockGet.mockResolvedValue(sandbox);
sandbox.delete.mockRejectedValueOnce(new Error("delete failed"));
mockGet.mockResolvedValue(sandbox);
await plugin.definition.onEnvironmentExecute?.(sessionExecParams());
const sessionId = sandbox.process.createSession.mock.calls[0]![0] as string;