From 53ed1108e64c23e9f6bcc31ff41c0b49576a3af6 Mon Sep 17 00:00:00 2001 From: Arnaud Simon Date: Wed, 16 Apr 2008 10:32:23 +0000 Subject: QPID-928 Added a pause period for letting the finalyzer a chance to notify all the Mina connector threads before we check for spurious threads. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648661 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/test/unit/client/connection/ConnectionCloseTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'java') diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java index 7df8c87300..3ab3b0410e 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java @@ -73,6 +73,13 @@ public class ConnectionCloseTest extends QpidTestCase receiver.close(); } + // The finalizer is notifying connector thread waiting on a selector key. + // This should leave the finalizer enough time to notify those threads + synchronized (this) + { + this.wait(1000); + } + Map after = Thread.getAllStackTraces(); Map delta = new HashMap(after); -- cgit v1.2.1