libcurl.js/client/tests/scripts/fetch_multiple.js
2024-01-31 22:11:29 +00:00

7 lines
No EOL
210 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");
}
}