mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
test(runner): allow complete durable resume timeout envelope
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
463ebb6266
commit
c60bf4b6b9
1 file changed
+4
-1
@@ -1766,6 +1766,9 @@ describe("Capability live runnerd and Codex session", () => {
|
||||
expect((await store.load(replacement.id))?.status).toBe("suspended");
|
||||
});
|
||||
|
||||
// This case includes a deliberate 500 ms killed turn, a resumed turn with
|
||||
// its own 5-second bound, and durable writes. The enclosing test must not
|
||||
// expire at the resumed turn's deadline before those assertions can finish.
|
||||
it("durably resumes a distinct attempt, preserves partial usage, and deduplicates the semantic effect", async () => {
|
||||
const state = providerState();
|
||||
const directory = await mkdtemp(join(tmpdir(), "capability-live-durable-"));
|
||||
@@ -1871,7 +1874,7 @@ describe("Capability live runnerd and Codex session", () => {
|
||||
reasoningTokens: 5,
|
||||
costNanodollars: 2_500,
|
||||
});
|
||||
});
|
||||
}, 15_000);
|
||||
|
||||
it("does not raise an unhandled rejection when interrupt() outlasts the turn timeout during reconcileActiveTurn", async () => {
|
||||
const state = providerState();
|
||||
|
||||
Reference in new issue
Block a user