Prevent drydock_run race

- Sleep between starting container and running
  curl test

Change-Id: I41863622d9fdb4bab20a4a36ee8e4fce50c2a598
This commit is contained in:
Scott Hussey 2018-01-08 13:56:40 -06:00
parent 6a00ceb0ff
commit 094eb7dd90
1 changed files with 2 additions and 0 deletions

View File

@ -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} ]]