expect a flow for the new subscriber, avoid race with test peer shutdown
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/af58ec04 Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/af58ec04 Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/af58ec04 Branch: refs/heads/master Commit: af58ec04765fbdf3ab2d1473fb2a12a00ae36acf Parents: d48d987 Author: Robert Gemmell <[email protected]> Authored: Wed Nov 12 15:32:45 2014 +0000 Committer: Robert Gemmell <[email protected]> Committed: Wed Nov 12 15:32:45 2014 +0000 ---------------------------------------------------------------------- .../org/apache/qpid/jms/integration/SessionIntegrationTest.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/af58ec04/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SessionIntegrationTest.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SessionIntegrationTest.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SessionIntegrationTest.java index 916a320..95dc6fc 100644 --- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SessionIntegrationTest.java +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/SessionIntegrationTest.java @@ -131,6 +131,7 @@ public class SessionIntegrationTest extends QpidJmsTestCase { String subscriptionName = "mySubscription"; testPeer.expectDurableSubscriberAttach(topicName, subscriptionName); + testPeer.expectLinkFlow(); TopicSubscriber subscriber = session.createDurableSubscriber(dest, subscriptionName); assertNotNull("TopicSubscriber object was null", subscriber); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
