mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 05:50:01 -04:00
7 lines
No EOL
210 B
JavaScript
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");
|
|
}
|
|
} |