From fefb7a9846e60c9590a803c99c5ecb659ac1fc04 Mon Sep 17 00:00:00 2001 From: Matt Liggett Date: Mon, 11 Jan 2016 11:40:19 -0800 Subject: [PATCH] Reduce test-update-storage-objects flakiness by adding a sleep. --- hack/test-update-storage-objects.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hack/test-update-storage-objects.sh b/hack/test-update-storage-objects.sh index deccad0b3f5..24d25d8622b 100755 --- a/hack/test-update-storage-objects.sh +++ b/hack/test-update-storage-objects.sh @@ -63,6 +63,9 @@ function startApiServer() { function killApiServer() { kube::log::status "Killing api server" [[ -n ${APISERVER_PID-} ]] && kill ${APISERVER_PID} 1>&2 2>/dev/null + + wait ${APISERVER_PID} || true + kube::log::status "api server exited" unset APISERVER_PID } @@ -114,12 +117,16 @@ ${UPDATE_ETCD_OBJECTS_SCRIPT} killApiServer + ####################################################### # Step 3 : Start a server which supports only the new api version. ####################################################### KUBE_API_VERSIONS="${KUBE_NEW_API_VERSION}" RUNTIME_CONFIG="api/all=false,api/${KUBE_NEW_API_VERSION}=true" + +# This seems to reduce flakiness. +sleep 1 startApiServer # Verify that the server is able to read the object.