You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2021/07/07 16:53:31 UTC

[qpid-dispatch] branch main updated: DISPATCH-2013: fix http1_adaptor test_01_mgmt bug

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

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


The following commit(s) were added to refs/heads/main by this push:
     new fd38f88  DISPATCH-2013: fix http1_adaptor test_01_mgmt bug
fd38f88 is described below

commit fd38f88b3c2ec9e0a83fce3be3bddbbc5f64ac3b
Author: Kenneth Giusti <kg...@apache.org>
AuthorDate: Wed Jul 7 11:14:55 2021 -0400

    DISPATCH-2013: fix http1_adaptor test_01_mgmt bug
---
 tests/system_tests_http1_adaptor.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/system_tests_http1_adaptor.py b/tests/system_tests_http1_adaptor.py
index d252769..2f2117b 100644
--- a/tests/system_tests_http1_adaptor.py
+++ b/tests/system_tests_http1_adaptor.py
@@ -107,8 +107,8 @@ class Http1AdaptorManagementTest(TestCase):
         mgmt.delete(type=CONNECTOR_TYPE, name="ServerConnector")
         self.assertEqual(0, len(mgmt.query(type=CONNECTOR_TYPE).results))
 
-        hconns = 0
         retry = 20  # 20 * 0.25 = 5 sec
+        hconns = 0
         while retry:
             obj = mgmt.query(type=CONNECTION_TYPE,
                              attribute_names=["protocol"])
@@ -119,6 +119,7 @@ class Http1AdaptorManagementTest(TestCase):
                 break
             sleep(0.25)
             retry -= 1
+            hconns = 0
 
         self.assertEqual(0, hconns, msg="HTTP connection not deleted")
 

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