Add hostname variable

This commit is contained in:
Alex Hyett 2023-09-27 10:38:43 +01:00
parent fae6319cdb
commit ee2ac342e1
5 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import http from 'k6/http';
import { sleep } from 'k6';
import { SharedArray } from 'k6/data';
var hostname = __ENV.HOSTNAME;
if (hostname == null) hostname = 'localhost:5157';
export const options = {

View file

@ -1,7 +1,6 @@
import http from 'k6/http';
var hostname = __ENV.HOSTNAME;
if (hostname == null) hostname = 'localhost:5157';
export const options = {

View file

@ -2,6 +2,7 @@ import http from 'k6/http';
import { sleep } from 'k6';
import { SharedArray } from 'k6/data';
var hostname = __ENV.HOSTNAME;
if (hostname == null) hostname = 'localhost:5157';
export const options = {

View file

@ -2,6 +2,7 @@ import http from 'k6/http';
import { sleep } from 'k6';
import { SharedArray } from 'k6/data';
var hostname = __ENV.HOSTNAME;
if (hostname == null) hostname = 'localhost:5157';
export const options = {

View file

@ -2,6 +2,7 @@ import http from 'k6/http';
import { sleep } from 'k6';
import { SharedArray } from 'k6/data';
var hostname = __ENV.HOSTNAME;
if (hostname == null) hostname = 'localhost:5157';
export const options = {