mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 14:54:46 +00:00
test: tighten mattermost retry error assertion
This commit is contained in:
@@ -97,7 +97,10 @@ describe("createMattermostDirectChannelWithRetry", () => {
|
||||
expect(retryCall?.[0]).toBe(1);
|
||||
expect(retryCall?.[1]).toBeGreaterThanOrEqual(10);
|
||||
expect(retryCall?.[1]).toBeLessThanOrEqual(20);
|
||||
expect(retryCall?.[2]).toMatchObject({ message: expect.stringContaining("429") });
|
||||
expect(retryCall?.[2]).toBeInstanceOf(Error);
|
||||
expect((retryCall?.[2] as Error | undefined)?.message).toBe(
|
||||
"Mattermost API 429 undefined: Too many requests",
|
||||
);
|
||||
});
|
||||
|
||||
it("retries on port 443 connection errors (not misclassified as 4xx)", async () => {
|
||||
|
||||
Reference in New Issue
Block a user