Unverified 提交 dfccb93a authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Fix unit test in retryWithRateLimit (#2153)

<!-- CURSOR_SUMMARY --> > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is generating a summary for commit 4ef340ba4e26fc3d41a2ea5fea9772ba669f3bd0. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
上级 daf69251
...@@ -277,7 +277,7 @@ describe("retryWithRateLimit", () => { ...@@ -277,7 +277,7 @@ describe("retryWithRateLimit", () => {
await vi.runAllTimersAsync(); await vi.runAllTimersAsync();
await expectation; await expectation;
expect(operation).toHaveBeenCalledTimes(7); // 1 initial + 6 retries expect(operation).toHaveBeenCalledTimes(9); // 1 initial + 8 retries
}); });
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论