test: speed extension and contract scenarios

This commit is contained in:
Peter Steinberger
2026-05-06 00:54:06 +01:00
parent cb42efb6e6
commit 093b2b9b5f
16 changed files with 270 additions and 89 deletions

View File

@@ -318,6 +318,14 @@ describe("matrix thread bindings", () => {
await vi.advanceTimersByTimeAsync(61_000);
await vi.waitFor(
() => expect(sendMessageMatrixMock.mock.calls.length).toBeGreaterThanOrEqual(2),
{
interval: 1,
timeout: 1_000,
},
);
await vi.waitFor(
async () => {
const persistedRaw = await fs.readFile(resolveBindingsFilePath(), "utf-8");