test(matrix): stabilize thread binding sweep persistence · openclaw/openclaw@7a85f1e
steipete
·
2026-05-24
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix
| Original file line number | Diff line number | Diff line change |
|---|
@@ -330,12 +330,14 @@ describe("matrix thread bindings", () => {
|
330 | 330 | placement: "current", |
331 | 331 | }); |
332 | 332 | |
| 333 | +const sendCallCount = sendMessageMatrixMock.mock.calls.length; |
333 | 334 | await vi.advanceTimersByTimeAsync(61_000); |
334 | 335 | |
335 | 336 | await vi.waitFor( |
336 | | -() => expect(sendMessageMatrixMock.mock.calls.length).toBeGreaterThanOrEqual(2), |
| 337 | +() => |
| 338 | +expect(sendMessageMatrixMock.mock.calls.length).toBeGreaterThanOrEqual(sendCallCount + 2), |
337 | 339 | { |
338 | | -interval: 1, |
| 340 | +interval: 10, |
339 | 341 | timeout: 1_000, |
340 | 342 | }, |
341 | 343 | ); |
@@ -346,7 +348,7 @@ describe("matrix thread bindings", () => {
|
346 | 348 | expect(persisted.version).toBe(1); |
347 | 349 | expect(persisted.bindings).toEqual([]); |
348 | 350 | }, |
349 | | -{ interval: 1, timeout: 100 }, |
| 351 | +{ interval: 10, timeout: 1_000 }, |
350 | 352 | ); |
351 | 353 | } finally { |
352 | 354 | vi.useRealTimers(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。