summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-07-04 15:30:11 +0000
committerAlan Conway <aconway@apache.org>2013-07-04 15:30:11 +0000
commita87428ea534cd63025bbc480f4c0f53f5fb58f3a (patch)
treee30b59b1a03fbefb1a2eb70861feaa01d7842707 /qpid/cpp/src/tests
parentff4ab4da4ea40107a593fdc1b87de0977bb49a3f (diff)
downloadqpid-python-a87428ea534cd63025bbc480f4c0f53f5fb58f3a.tar.gz
QPID-4944: HA Sporadic failure - logging improvements used to investigate.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1499788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/brokertest.py1
-rwxr-xr-xqpid/cpp/src/tests/ha_tests.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/brokertest.py b/qpid/cpp/src/tests/brokertest.py
index fbbaadc350..220c5f4367 100644
--- a/qpid/cpp/src/tests/brokertest.py
+++ b/qpid/cpp/src/tests/brokertest.py
@@ -534,6 +534,7 @@ class NumberedSender(Thread):
self.received = 0
self.stopped = False
self.error = None
+ self.queue = queue
def write_message(self, n):
self.sender.stdin.write(str(n)+"\n")
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py
index a42810dcc0..2235e87dc5 100755
--- a/qpid/cpp/src/tests/ha_tests.py
+++ b/qpid/cpp/src/tests/ha_tests.py
@@ -949,7 +949,8 @@ class LongTests(HaBrokerTest):
def check():
r.check() # Verify no exceptions
return r.received > n + 100
- assert retry(check), "Stalled %s at %s"%(r.queue, n)
+ assert retry(check), "Stalled %s waiting for %s, sent %s"%(
+ r.queue, n, [s for s in senders if s.queue==r.queue][0].sent)
for r in receivers: wait_passed(r, 0)