From 589700e4d3ad7b6f314274f8404570e3b6213fc2 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Sun, 29 Dec 2024 11:45:05 +0200 Subject: [PATCH] improve test performance --- tests/lab3/user_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lab3/user_test.sh b/tests/lab3/user_test.sh index 82f5c5e..319ffc8 100755 --- a/tests/lab3/user_test.sh +++ b/tests/lab3/user_test.sh @@ -19,7 +19,7 @@ fi echo ' Done.' echo -n 'Creating users...' -for i in $(seq 9); do +for i in $(seq 1); do curl -X POST -f -s \ --data "{\"name\": \"hi$i\"}" \ --header "Content-Type: application/json" \ @@ -49,7 +49,7 @@ echo " $DELETION_UUID." echo -n "Deleting user $DELETION_UUID..." curl -X DELETE -f -s \ - http://127.0.0.1:12402/user/$DELETION_UUID > /dev/null + http://$HOST:12402/user/$DELETION_UUID > /dev/null if [ $? -ne 0 ]; then echo 'Exiting due to previous error'