Prevent drydock_run race
- Sleep between starting container and running curl test Change-Id: I41863622d9fdb4bab20a4a36ee8e4fce50c2a598
This commit is contained in:
parent
6a00ceb0ff
commit
094eb7dd90
@ -51,6 +51,8 @@ function test_drydock {
|
||||
-v ${TMPETC}:/etc/drydock \
|
||||
${DRYDOCK_IMAGE}
|
||||
|
||||
sleep 10
|
||||
|
||||
RESULT=$(curl --noproxy '*' -i 'http://127.0.0.1:9000/api/v1.0/tasks' | tr '\r' '\n' | head -1)
|
||||
GOOD="HTTP/1.1 200 OK"
|
||||
if [[ ${RESULT} == ${GOOD} ]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user