mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 05:16:50 +01:00
test: distinguish pending transactions from settled expiry work
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
fac808eabc
commit
d873713dfd
1 file changed
+2
-2
@@ -307,7 +307,7 @@ describeEmbeddedPostgres("secret proposal routes", () => {
|
||||
}).catch(error => { if (error !== rollbackError) throw error; });
|
||||
await staged;
|
||||
try {
|
||||
await settle();
|
||||
await vi.advanceTimersByTimeAsync(60_000);
|
||||
expect(await proposals.nextExpiryAt()).toBeNull();
|
||||
} finally { release(); }
|
||||
await writing; await settle();
|
||||
@@ -317,7 +317,7 @@ describeEmbeddedPostgres("secret proposal routes", () => {
|
||||
|
||||
it("reconstructs a deadline after restart and disarms when the proposer withdraws", async () => {
|
||||
const secret = await create();
|
||||
await start();
|
||||
await start(); await settle();
|
||||
expect(coordinator!.nextWakeAt()).toBe(secret.expiresAt.getTime());
|
||||
await proposals.transition(fixture.companyId, secret.id, "withdrawn", { proposerAgentId: fixture.agentId });
|
||||
await quiet();
|
||||
|
||||
Reference in new issue
Block a user