mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
Merge branch 'codex/work-folders-runtime-hardening-refresh' into codex/work-folders-staging-hardening-refresh
* codex/work-folders-runtime-hardening-refresh: test(daytona): retain explicit destroy failure coverage
This commit is contained in:
commit
28ecbdd016
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user