File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1818 run : scripts/build_container -g scratch -e BASE_IMAGE=scratch
1919
2020 - name : Run test script
21+ env :
22+ RABBITMQ_START_TIMEOUT : 180
2123 run : scripts/test
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash -x
22
33set -e
44
55DIRNAME=" $( dirname " $( readlink -f " $0 " ) " ) "
66
7+ : " ${RABBITMQ_START_TIMEOUT:= 20} "
8+
79trap rm_containters EXIT
810
911rm_containters () {
@@ -26,7 +28,7 @@ echo -e "[\033[34mINFO\033[0m] Wait for rabbitmq listener"
2628docker run --network=host --rm -q \
2729 --name rdq-busybox \
2830 busybox \
29- sh -c ' nc -w 20 -z localhost 5672 >/dev/null'
31+ sh -c " nc -w ${RABBITMQ_START_TIMEOUT} -z localhost 5672 >/dev/null"
3032
3133echo -e " [\033[34mINFO\033[0m] Run tests"
3234docker run --network=host --rm \
You can’t perform that action at this time.
0 commit comments