diff options
| author | Robert Gemmell <robbie@apache.org> | 2009-12-18 11:59:11 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2009-12-18 11:59:11 +0000 |
| commit | a7cce07ba6ce085196de9533ac1ecf9c26406008 (patch) | |
| tree | 6a3f34a59452bc9b0aec67563ada6592c6790678 | |
| parent | 4a970b3a27d2dfd12852d9ffe291e66c9b3839a2 (diff) | |
| download | qpid-python-a7cce07ba6ce085196de9533ac1ecf9c26406008.tar.gz | |
QPID-2177: insert a synchronous operation to alleviate the recieve race condition in the test
merge from trunk r892228
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@892231 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/queue/ProducerFlowControlTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/ProducerFlowControlTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/ProducerFlowControlTest.java index da40129356..fb32505585 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/ProducerFlowControlTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/ProducerFlowControlTest.java @@ -405,6 +405,11 @@ public class ProducerFlowControlTest extends AbstractTestLogging consumerConnection.start(); consumer.receive(); + + //perform a synchronous op on the connection + ((AMQSession) consumerSession).declareExchange( + new AMQShortString("amq.direct"), new AMQShortString("direct"), false); + assertFalse("Queue should not be overfull", queueMBean.isFlowOverfull()); consumer.receive(); |
