Skip to content

Commit 7e98084

Browse files
committed
test: allow time for lease database round trips
The 34-turn regression can exceed Vitest default five-second timeout on shared MySQL CI runners. Allow fifteen seconds for test execution while keeping the 200 ms lease, 50 ms renewal, and all assertions. See #72
1 parent d096204 commit 7e98084

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
resetting their test tables so repeated runs leave no messages or extra tables.
1313
Control the server-database test clocks to avoid runner scheduling delays;
1414
SQLite keeps real synchronous waits with a 200 ms lease.
15+
Allow 15 seconds for the 34-turn test's database round trips in CI.
1516
- Add `scripts/check-compatibility-fixtures.mjs` and a workflow with the name
1617
`Compatibility fixtures`. The script compares the `*.json` files in two
1718
directories by name and by bytes. It fails with one line for each file that

‎test/activation-lease.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe("activation lease recovery", () => {
136136
34,
137137
)
138138
await worker.stop()
139-
})
139+
}, 15_000)
140140

141141
it("renews between short turns in a single pass without timer ticks", async () => {
142142
await setup()

0 commit comments

Comments
 (0)