Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update index.test.ts

Nicolas18fa15df25da
diff --git a/apps/api/src/__tests__/e2e_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_withAuth/index.test.ts
index 1078cb695..e9082ca6a 100644
--- a/apps/api/src/__tests__/e2e_withAuth/index.test.ts
+++ b/apps/api/src/__tests__/e2e_withAuth/index.test.ts
@@ -977,43 +977,43 @@ describe("E2E Tests for API Routes", () => {
}, 60000);
});
- it("should return 429 when rate limit is exceeded for API key", async () => {
- for (let i = 0; i < parseInt(process.env.RATE_LIMIT_TEST_API_KEY_SCRAPE); i++) {
- const response = await request(TEST_URL)
- .post("/v0/scrape")
- .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
- .set("Content-Type", "application/json")
- .send({ url: "https://www.scrapethissite.com" });
+ // it("should return 429 when rate limit is exceeded for API key", async () => {
+ // for (let i = 0; i < parseInt(process.env.RATE_LIMIT_TEST_API_KEY_SCRAPE); i++) {
+ // const response = await request(TEST_URL)
+ // .post("/v0/scrape")
+ // .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
+ // .set("Content-Type", "application/json")
+ // .send({ url: "https://www.scrapethissite.com" });
- expect(response.statusCode).toBe(200);
- }
+ // expect(response.statusCode).toBe(200);
+ // }
- const response = await request(TEST_URL)
- .post("/v0/scrape")
- .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
- .set("Content-Type", "application/json")
- .send({ url: "https://www.scrapethissite.com" });
+ // const response = await request(TEST_URL)
+ // .post("/v0/scrape")
+ // .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
+ // .set("Content-Type", "application/json")
+ // .send({ url: "https://www.scrapethissite.com" });
- expect(response.statusCode).toBe(429);
- }, 60000);
+ // expect(response.statusCode).toBe(429);
+ // }, 60000);
- it("should return 429 when rate limit is exceeded for API key", async () => {
- for (let i = 0; i < parseInt(process.env.RATE_LIMIT_TEST_API_KEY_CRAWL); i++) {
- const response = await request(TEST_URL)
- .post("/v0/crawl")
- .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
- .set("Content-Type", "application/json")
- .send({ url: "https://www.scrapethissite.com" });
+ // it("should return 429 when rate limit is exceeded for API key", async () => {
+ // for (let i = 0; i < parseInt(process.env.RATE_LIMIT_TEST_API_KEY_CRAWL); i++) {
+ // const response = await request(TEST_URL)
+ // .post("/v0/crawl")
+ // .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
+ // .set("Content-Type", "application/json")
+ // .send({ url: "https://www.scrapethissite.com" });
- expect(response.statusCode).toBe(200);
- }
+ // expect(response.statusCode).toBe(200);
+ // }
- const response = await request(TEST_URL)
- .post("/v0/crawl")
- .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
- .set("Content-Type", "application/json")
- .send({ url: "https://www.scrapethissite.com" });
+ // const response = await request(TEST_URL)
+ // .post("/v0/crawl")
+ // .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
+ // .set("Content-Type", "application/json")
+ // .send({ url: "https://www.scrapethissite.com" });
- expect(response.statusCode).toBe(429);
- }, 60000);
+ // expect(response.statusCode).toBe(429);
+ // }, 60000);
});