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/08 20:38:35 UTC

[qpid-dispatch] branch master updated: DISPATCH-1439 - Additional fix to failing test system_test_one_router

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 d0f95c4  DISPATCH-1439 - Additional fix to failing test system_test_one_router
d0f95c4 is described below

commit d0f95c4f03cd053360f96cd3f1c0092915e327f1
Author: Ganesh Murthy <gm...@apache.org>
AuthorDate: Fri Nov 8 15:36:49 2019 -0500

    DISPATCH-1439 - Additional fix to failing test system_test_one_router
---
 tests/system_tests_one_router.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/system_tests_one_router.py b/tests/system_tests_one_router.py
index 5578e20..945b871 100644
--- a/tests/system_tests_one_router.py
+++ b/tests/system_tests_one_router.py
@@ -2703,7 +2703,6 @@ class UptimeLastDlvChecker(object):
         container_id_index = result.attribute_names.index('container')
         uptime_seconds_index = result.attribute_names.index('uptimeSeconds')
         last_dlv_seconds_index = result.attribute_names.index('lastDlvSeconds')
-
         for res in result.results:
             container_id = res[container_id_index]
 
@@ -2713,8 +2712,8 @@ class UptimeLastDlvChecker(object):
                 if self.uptime != 0 and uptime_seconds < self.uptime:
                     self.parent.error = "The connection uptime should be greater than or equal to %d seconds but instead is %d seconds" % (self.uptime, uptime_seconds)
                 last_dlv_seconds = res[last_dlv_seconds_index]
-                if self.lastDlv == '-':
-                    if last_dlv_seconds != self.lastDlv:
+                if self.lastDlv is None:
+                    if last_dlv_seconds is not None:
                         self.parent.error = "Expected lastDlvSeconds to be empty"
                 else:
                     if not last_dlv_seconds >= self.lastDlv:


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