mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-01 15:21:07 +03:00
lockCategoriesHTTP
- highLoad - compact getUserID - add genRandomValue method
This commit is contained in:
@@ -13,24 +13,18 @@ describe("High load test", () => {
|
||||
sinon.restore();
|
||||
});
|
||||
|
||||
it("Should return 503 on getTopUsers", async () => {
|
||||
await client.get("/api/getTopUsers?sortType=0")
|
||||
.then(res => {
|
||||
assert.strictEqual(res.status, 503);
|
||||
});
|
||||
});
|
||||
it("Should return 503 on getTopUsers", () =>
|
||||
client.get("/api/getTopUsers?sortType=0")
|
||||
.then(res => assert.strictEqual(res.status, 503))
|
||||
);
|
||||
|
||||
it("Should return 503 on getTopCategoryUsers", async () => {
|
||||
await client.get("/api/getTopCategoryUsers?sortType=0&category=sponsor")
|
||||
.then(res => {
|
||||
assert.strictEqual(res.status, 503);
|
||||
});
|
||||
});
|
||||
it("Should return 503 on getTopCategoryUsers", () =>
|
||||
client.get("/api/getTopCategoryUsers?sortType=0&category=sponsor")
|
||||
.then(res => assert.strictEqual(res.status, 503))
|
||||
);
|
||||
|
||||
it("Should return 0 on getTotalStats", async () => {
|
||||
await client.get("/api/getTotalStats")
|
||||
.then(res => {
|
||||
assert.strictEqual(res.status, 200);
|
||||
});
|
||||
});
|
||||
it("Should return 0 on getTotalStats", () =>
|
||||
client.get("/api/getTotalStats")
|
||||
.then(res => assert.strictEqual(res.status, 200))
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user