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.

chore(test): sitemap backpressure test hangs on cross-hostname URLs (#3885)

Jindřich Bärd0d8fa15cc42
diff --git a/test/core/sitemap_request_list.test.ts b/test/core/sitemap_request_list.test.ts
index ecf453162..24397b9ec 100644
--- a/test/core/sitemap_request_list.test.ts
+++ b/test/core/sitemap_request_list.test.ts
@@ -699,6 +699,7 @@ describe('SitemapRequestList', () => {
sitemapUrls: [`${url}/sitemap.xml`],
persistStateKey: 'backpressure-persist',
maxBufferSize: 1,
+ enqueueStrategy: 'all',
});
// Wait until the first URL is buffered, i.e. the loader is parked on backpressure.