This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
export const URL = 'https://test.k6.io'; | |
export default function () { | |
let res = http.get(URL); | |
check(res, { | |
'resource returns status 200': (r) => r.status === 200, | |
}); |