summaryrefslogtreecommitdiff
path: root/tests
diff options
authorjrwren@xmtp.net <>2015-11-20 10:52:23 -0500
committerjrwren@xmtp.net <>2015-11-20 10:52:23 -0500
commit13f9e8aa63f3a59107d536b78a5560f8dbc566f9 (patch)
tree13dab31e5ee069fe32332ad76a11e7f0b9fc7456 /tests
parentd24fcdd584faf6d609292c9e5c832342d55af72c (diff)
use sentry.wait() instead of time.sleep - much faster.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/04_deploy_with_storage.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/04_deploy_with_storage.py b/tests/04_deploy_with_storage.py
index 8013641..a429ca1 100755
--- a/tests/04_deploy_with_storage.py
+++ b/tests/04_deploy_with_storage.py
@@ -57,9 +57,8 @@ def validate_status():
#############################################################
def validate_replicaset_setup():
- print("sleeping ot wait for replicatset")
- time.sleep(wait_for_replicaset)
- print("waking")
+ d.sentry.wait()
+#time.sleep(wait_for_replicaset)
unit_status = []
@@ -86,7 +85,11 @@ def validate_replicaset_setup():
validate_status()
validate_replicaset_setup()
print("Adding storage relation, and sleeping for 2 min.")
-d.relate('mongodb:data', 'storage:data')
-time.sleep(wait_for_relation)
+try:
+ d.relate('mongodb:data', 'storage:data')
+except OSError as e:
+ print("ignoring error:{}", e)
+d.sentry.wait()
+#time.sleep(wait_for_relation)
validate_status()
validate_replicaset_setup()