summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@gmail.com>2016-07-18 02:33:41 -0400
committerNick Vatamaniuc <vatamane@gmail.com>2016-07-18 03:05:52 -0400
commit9620ff68e19920d08a05a0d3254dc6dfbc93a7f8 (patch)
tree1edb974640c147545a9801d649e9ac97bb34074f
parentd0b8d792b521047a68ef301d01b286d6781df300 (diff)
downloadcouchdb-clean-dev-run-startup.tar.gz
Clean up ./dev/run outputclean-dev-run-startup
If connection succeeds eventually, don't report spurious error when retrying. Turns `./dev/run` output from this: ``` [ * ] Check node at http://127.0.0.1:15984/ ... failed: [Errno socket error] [Errno 111] Connection refused [ * ] Check node at http://127.0.0.1:25984/ ... ok [ * ] Check node at http://127.0.0.1:35984/ ... ok [ * ] Check node at http://127.0.0.1:15984/ ... ok ``` to this: ``` [ * ] Check node at http://127.0.0.1:15984/ ... ok [ * ] Check node at http://127.0.0.1:25984/ ... ok [ * ] Check node at http://127.0.0.1:35984/ ... ok ``` Cleaner and a bit less scary for new developers.
-rwxr-xr-xdev/run1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev/run b/dev/run
index fc1bab281..2a9ca3f3c 100755
--- a/dev/run
+++ b/dev/run
@@ -359,6 +359,7 @@ def check_node_alive(url):
error = exc
time.sleep(1)
else:
+ error = None
break
if error is not None:
raise error