2023-09-26 10:52:17 +00:00
|
|
|
import http from 'k6/http';
|
|
|
|
|
2023-09-27 08:51:36 +00:00
|
|
|
var hostname = __ENV.HOSTNAME;
|
|
|
|
|
|
|
|
if (hostname == null) hostname = 'localhost:5157';
|
|
|
|
|
2023-09-26 10:52:17 +00:00
|
|
|
export const options = {
|
|
|
|
vus: 1,
|
|
|
|
duration: '10s'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default () => {
|
2023-09-27 08:51:36 +00:00
|
|
|
http.get(`http://${hostname}/age/1987-09-01`);
|
2023-09-26 10:52:17 +00:00
|
|
|
};
|