Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Remove obsolete test

Ondra Urban05aa800516b8
diff --git a/test/crawlers/basic_crawler.test.js b/test/crawlers/basic_crawler.test.js
index b09846d2c..76ce41cf0 100644
--- a/test/crawlers/basic_crawler.test.js
+++ b/test/crawlers/basic_crawler.test.js
@@ -683,23 +683,6 @@ describe('BasicCrawler', () => {
expect(events.listenerCount(ACTOR_EVENT_NAMES.PERSIST_STATE)).toEqual(0);
expect(crawler.sessionPool.maxPoolSize).toEqual(10);
});
-
- it('should not use SessionPool by default', async () => {
- const url = 'https://example.com';
- const requestList = new Apify.RequestList({ sources: [{ url }] });
- await requestList.initialize();
-
- const crawler = new Apify.BasicCrawler({
- requestList,
- handleRequestTimeoutSecs: 0.01,
- maxRequestRetries: 1,
- handleRequestFunction: async () => {},
- handleFailedRequestFunction: () => {},
- });
- await crawler.run();
-
- expect(crawler.sessionPool).toBeUndefined();
- });
});
describe('CrawlingContext', () => {