You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
537 B
15 lines
537 B
import { describe, expect, it } from "vitest";
|
|
import { isCcRateLimitedMessage } from "@/services/cc/conflict";
|
|
|
|
describe("transfer gate vs GetContainerList rate limit", () => {
|
|
it("detects CC 60s interval message", () => {
|
|
expect(
|
|
isCcRateLimitedMessage(
|
|
"访问时长限制,当前接口访问时间间隔[60]秒!",
|
|
),
|
|
).toBe(true);
|
|
expect(isCcRateLimitedMessage("访问次数限制,请稍后再试")).toBe(true);
|
|
expect(isCcRateLimitedMessage("GetContainerList timeout")).toBe(false);
|
|
});
|
|
});
|