You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2019/11/01 16:06:59 UTC

[qpid-dispatch] branch master updated: DISPATCH-1466 - Initialize the host variable so it can be used anywhere inside the function. This closes #607

This is an automated email from the ASF dual-hosted git repository.

gmurthy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new f03308c  DISPATCH-1466 - Initialize the host variable so it can be used anywhere inside the function. This closes #607
f03308c is described below

commit f03308c9ae3de5cc10e100202d927d5198092ace
Author: Ganesh Murthy <gm...@apache.org>
AuthorDate: Fri Nov 1 12:05:47 2019 -0400

    DISPATCH-1466 - Initialize the host variable so it can be used anywhere inside the function. This closes #607
---
 tests/system_test.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/system_test.py b/tests/system_test.py
index 33cb925..0f960e3 100755
--- a/tests/system_test.py
+++ b/tests/system_test.py
@@ -193,6 +193,8 @@ def wait_port(port, protocol_family='IPv4', **retry_kwargs):
         if not isinstance(e, socket.error) or not e.errno == errno.ECONNREFUSED:
             raise
 
+    host = None
+
     def connect():
         # macOS gives EINVAL for all connection attempts after a ECONNREFUSED
         # man 3 connect: "If connect() fails, the state of the socket is unspecified. [...]"
@@ -205,7 +207,7 @@ def wait_port(port, protocol_family='IPv4', **retry_kwargs):
     try:
         retry_exception(connect, exception_test=check, **retry_kwargs)
     except Exception as e:
-        raise Exception("wait_port timeout on port %s: %s" % (port, e))
+        raise Exception("wait_port timeout on host %s port %s: %s" % (host, port, e))
 
 def wait_ports(ports, **retry_kwargs):
     """Wait up to timeout for all ports (on host) to be connectable.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org