]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: reduce the amount of time we wait
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 26 Jun 2018 11:42:27 +0000 (13:42 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 28 Jun 2018 08:42:48 +0000 (10:42 +0200)
This sleep 120 looks a bit long, let's reduce this to 30sec and see if
things go faster.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 081600842ff3758910109d9f636b54cb12a85ed9)

tox.ini

diff --git a/tox.ini b/tox.ini
index 25b2f11a1c0e5c89a728170ae64093ca06f14a8a..25bb4422b063d8ddcddf0ebeb15b7459f73bda65 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -229,16 +229,16 @@ commands=
       copy_admin_key={env:COPY_ADMIN_KEY:False} \
   "
 
-  # wait 2 minutes for services to be ready
-  sleep 120
+  # wait 30sec for services to be ready
+  sleep 30
   # test cluster state using ceph-ansible tests
   testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
 
   # reboot all vms
   ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/reboot.yml
 
-  # wait 2 minutes for services to be ready
-  sleep 120
+  # wait 30sec for services to be ready
+  sleep 30
   # retest to ensure cluster came back up correctly after rebooting
   testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests