Repository: qpid-dispatch Updated Branches: refs/heads/master 9b51e699a -> 49891577c
DISPATCH-179 - Modified wait_address in system_test.py to use unicode strings for attribute_names Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/49891577 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/49891577 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/49891577 Branch: refs/heads/master Commit: 49891577c5d57a912aa4b435bb11be394991a55c Parents: 9b51e69 Author: Ganesh Murthy <gmur...@redhat.com> Authored: Mon Mar 28 12:16:20 2016 -0400 Committer: Ganesh Murthy <gmur...@redhat.com> Committed: Mon Mar 28 12:16:20 2016 -0400 ---------------------------------------------------------------------- tests/system_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/49891577/tests/system_test.py ---------------------------------------------------------------------- diff --git a/tests/system_test.py b/tests/system_test.py index 1a0c761..6f5716d 100644 --- a/tests/system_test.py +++ b/tests/system_test.py @@ -457,8 +457,10 @@ class Qdrouterd(Process): # endswith check is because of M0/L/R prefixes addrs = self.management.query( type='org.apache.qpid.dispatch.router.address', - attribute_names=['name', 'subscriberCount', 'remoteCount']).get_entities() + attribute_names=[u'name', u'subscriberCount', u'remoteCount']).get_entities() + addrs = [a for a in addrs if a['name'].endswith(address)] + return addrs and addrs[0]['subscriberCount'] >= subscribers and addrs[0]['remoteCount'] >= remotes assert retry(check, **retry_kwargs) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org