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 2018/04/09 20:49:11 UTC

qpid-dispatch git commit: NO-JIRA - Minor fix to system_tests_autolinks. Remnoved the use of literal values

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 86834e7ba -> a2acb1724


NO-JIRA - Minor fix to system_tests_autolinks. Remnoved the use of literal values


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/a2acb172
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/a2acb172
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/a2acb172

Branch: refs/heads/master
Commit: a2acb1724d09bf7081c8d9f8672eecfd1039e5bc
Parents: 86834e7
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Mon Apr 9 16:48:56 2018 -0400
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Mon Apr 9 16:48:56 2018 -0400

----------------------------------------------------------------------
 tests/system_tests_autolinks.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/a2acb172/tests/system_tests_autolinks.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_autolinks.py b/tests/system_tests_autolinks.py
index ec6c73f..89cc76c 100644
--- a/tests/system_tests_autolinks.py
+++ b/tests/system_tests_autolinks.py
@@ -552,7 +552,7 @@ class AutolinkMultipleReceiverUsingMyListenerTest(MessagingHandler):
         self.normal_address = normal_address
         self.route_address = route_address
         self.dest = addr
-        self.count = 2
+        self.count = 10
         self.normal_conn = None
         self.route_conn1 = None
         self.route_conn2 = None
@@ -578,6 +578,9 @@ class AutolinkMultipleReceiverUsingMyListenerTest(MessagingHandler):
         self.route_conn2.close()
 
     def on_start(self, event):
+        if self.count % 2 != 0:
+            self.error = "Count must be a multiple of 2"
+            return
         self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
         self.normal_conn = event.container.connect(self.normal_address)
         self.route_conn1 = event.container.connect(self.route_address)
@@ -612,7 +615,7 @@ class AutolinkMultipleReceiverUsingMyListenerTest(MessagingHandler):
         if event.receiver == self.route_conn_rcv2:
             self.rcv2_received += 1
 
-        if self.rcv1_received == 1 and self.rcv2_received == 1:
+        if self.rcv1_received == self.count/2 and self.rcv2_received == self.count/2:
             self.timer.cancel()
             self.normal_conn.close()
             self.route_conn1.close()


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