libcurl.js/client/tests/scripts/fetch_multiple.js
2024-03-20 02:34:40 -04:00

8 lines
No EOL
230 B
JavaScript

async function test() {
await libcurl.fetch("https://example.com/");
for (let i=0; i<20; i++) {
let r = await libcurl.fetch("https://example.com/");
assert(r.status === 200, "wrong status");
await r.text();
}
}