Add hostname variable
This commit is contained in:
parent
fae6319cdb
commit
ee2ac342e1
5 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ import http from 'k6/http';
|
||||||
import { sleep } from 'k6';
|
import { sleep } from 'k6';
|
||||||
import { SharedArray } from 'k6/data';
|
import { SharedArray } from 'k6/data';
|
||||||
|
|
||||||
|
var hostname = __ENV.HOSTNAME;
|
||||||
if (hostname == null) hostname = 'localhost:5157';
|
if (hostname == null) hostname = 'localhost:5157';
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import http from 'k6/http';
|
import http from 'k6/http';
|
||||||
|
|
||||||
var hostname = __ENV.HOSTNAME;
|
var hostname = __ENV.HOSTNAME;
|
||||||
|
|
||||||
if (hostname == null) hostname = 'localhost:5157';
|
if (hostname == null) hostname = 'localhost:5157';
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import http from 'k6/http';
|
||||||
import { sleep } from 'k6';
|
import { sleep } from 'k6';
|
||||||
import { SharedArray } from 'k6/data';
|
import { SharedArray } from 'k6/data';
|
||||||
|
|
||||||
|
var hostname = __ENV.HOSTNAME;
|
||||||
if (hostname == null) hostname = 'localhost:5157';
|
if (hostname == null) hostname = 'localhost:5157';
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import http from 'k6/http';
|
||||||
import { sleep } from 'k6';
|
import { sleep } from 'k6';
|
||||||
import { SharedArray } from 'k6/data';
|
import { SharedArray } from 'k6/data';
|
||||||
|
|
||||||
|
var hostname = __ENV.HOSTNAME;
|
||||||
if (hostname == null) hostname = 'localhost:5157';
|
if (hostname == null) hostname = 'localhost:5157';
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import http from 'k6/http';
|
||||||
import { sleep } from 'k6';
|
import { sleep } from 'k6';
|
||||||
import { SharedArray } from 'k6/data';
|
import { SharedArray } from 'k6/data';
|
||||||
|
|
||||||
|
var hostname = __ENV.HOSTNAME;
|
||||||
if (hostname == null) hostname = 'localhost:5157';
|
if (hostname == null) hostname = 'localhost:5157';
|
||||||
|
|
||||||
export const options = {
|
export const options = {
|
||||||
|
|
Loading…
Reference in a new issue