Skip to content

Commit ed7c992

Browse files
authored
allow setting average response time (ITISFoundation#2365)
1 parent 306cd88 commit ed7c992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/performance/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ test: ## runs osparc locust with target=locust_test_file.py in headless mode for
4949
@$(call check_defined, target, please define target file when calling $@ - e.g. ```make $@ target=MY_LOCUST_FILE.py```)
5050
@export LOCUST_FILE=$(target); \
5151
export TARGET_URL=$(if $(host),$(host),"http://$(get_my_ip):9081"); \
52-
export LOCUST_OPTIONS="--headless --print-stats --users=100 --spawn-rate=20 --run-time=1m --check-fail-ratio=0.01 --check-avg-response-time=200"; \
52+
export LOCUST_OPTIONS="--headless --print-stats --users=100 --spawn-rate=20 --run-time=1m --check-fail-ratio=0.01 --check-avg-response-time=$(if $(resp_time),$(resp_time),200)"; \
5353
docker-compose --file docker-compose.yml up --scale worker=4 --exit-code-from=master

0 commit comments

Comments
 (0)