wait for connection open handlers to complete, avoid rare exception when closing the test peer before they do
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/297ad6fc Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/297ad6fc Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/297ad6fc Branch: refs/heads/master Commit: 297ad6fce56ccf871a6c3f03223b411c9776d184 Parents: 664f8ad Author: Robert Gemmell <rob...@apache.org> Authored: Tue Feb 24 15:00:27 2015 +0000 Committer: Robert Gemmell <rob...@apache.org> Committed: Tue Feb 24 15:00:27 2015 +0000 ---------------------------------------------------------------------- .../org/apache/qpid/jms/integration/ConnectionIntegrationTest.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/297ad6fc/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConnectionIntegrationTest.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConnectionIntegrationTest.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConnectionIntegrationTest.java index c6b8632..72960bd 100644 --- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConnectionIntegrationTest.java +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/ConnectionIntegrationTest.java @@ -86,6 +86,8 @@ public class ConnectionIntegrationTest extends QpidJmsTestCase { ConnectionMetaData meta = connection.getMetaData(); int result = meta.getProviderMajorVersion() + meta.getProviderMinorVersion(); assertTrue("Expected non-zero provider major / minor version", result != 0); + + testPeer.waitForAllHandlersToComplete(1000); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org