diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-10-06 13:22:05 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-10-06 13:22:05 +0000 |
commit | 5fc3df4477567b000c6f3639be6dea3cf6e9c74a (patch) | |
tree | ae1b48bdc773e398485263bda3801519a1fac856 | |
parent | 3fb69c9de4abc5e43a3830d210b8168ad5838de5 (diff) | |
download | qpid-python-5fc3df4477567b000c6f3639be6dea3cf6e9c74a.tar.gz |
The receiver was only counting messages if dups check was on.
Therefore added logic to count messages even when we are not checking for dups.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1005024 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/testkit/src/main/java/org/apache/qpid/testkit/Receiver.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/testkit/src/main/java/org/apache/qpid/testkit/Receiver.java b/qpid/java/testkit/src/main/java/org/apache/qpid/testkit/Receiver.java index b6b1bd29a0..b4294ee4cc 100644 --- a/qpid/java/testkit/src/main/java/org/apache/qpid/testkit/Receiver.java +++ b/qpid/java/testkit/src/main/java/org/apache/qpid/testkit/Receiver.java @@ -165,6 +165,11 @@ public class Receiver extends Client implements MessageListener + sequence + ",received=" + seq + ")" ); } } + else + { + msg_count ++; + } + // Please note that this test case doesn't expect duplicates // When testing for transactions. if (isTransacted() && msg_count % getTxSize() == 0) |