Skip to content

Commit ac7c2bc

Browse files
committed
test(knowledge): expire the restore budget at the heartbeat before the next window
1 parent 2837d6a commit ac7c2bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/lib/knowledge/__integration__/connector-lease-pages.integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ describe('connector lease ACL pages in PostgreSQL', () => {
683683
deadlineAt: clock + 1_000,
684684
beforePage: async () => {
685685
pages += 1
686-
/** The window read, then the first page: the budget passes during that page. */
687-
if (pages === 2) clock += 2_000
686+
/** The window read and the first page run; the budget passes before the next window. */
687+
if (pages === 3) clock += 2_000
688688
},
689689
}
690690
)

0 commit comments

Comments
 (0)