Skip to content

Commit 4e7372e

Browse files
committed
✅fix some tests delays
1 parent 4301219 commit 4e7372e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/tests/respond-drop.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ curl -X PATCH -s -H "Content-Type: application/json" -d "{\"id\": \"${decoy_id}\
6060
# Send the global configuration to the API
6161
curl -X PUT -s -H "Content-Type: application/json" -d "$globalconfig" http://localhost:8050/config > /dev/null
6262
# wait a few seconds for the proxy to read the new config
63-
sleep 3
63+
sleep 5
6464

6565

6666
# Start timing
@@ -73,7 +73,7 @@ tempfile=$(bash ./uuidgen.sh)
7373
curl -v --cookie SESSION=c32272b9-99d8-4687-b57e-a606952ae870 -H "x-cloud-active-defense: ACTIVE" -s http://localhost:8000/ &>/dev/null
7474

7575
# Wait a little before next request
76-
sleep 2
76+
sleep 3
7777
# Do relevant action(s)
7878
curl -v --max-time 5 --cookie SESSION=c32272b9-99d8-4687-b57e-a606952ae870 http://localhost:8000/ >$tempfile 2>&1
7979

tests/tests/respond-error.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ curl -X PATCH -s -H "Content-Type: application/json" -d "{\"id\": \"${decoy_id}\
4747
curl -X PUT -s -H "Content-Type: application/json" -d "$globalconfig" http://localhost:8050/config > /dev/null
4848

4949
# wait a few seconds for the proxy to read the new config
50-
sleep 3
50+
sleep 5
5151

5252

5353
# Start timing
@@ -60,7 +60,7 @@ tempfile=$(bash ./uuidgen.sh)
6060
curl -v -H "x-cloud-active-defense: ACTIVE" -s http://localhost:8000/ &>/dev/null
6161

6262
# Wait a little before next request
63-
sleep 2
63+
sleep 3
6464
# Do relevant action(s)
6565
curl -v http://localhost:8000/ >$tempfile 2>&1
6666

0 commit comments

Comments
 (0)