From 32e095be68143b3672b51df81409e67415cb03df 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@648661 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/test/unit/client/connection/ConnectionCloseTest.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qpid/java') diff --git a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java index 7df8c87300..3ab3b0410e 100644 --- a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java +++ b/qpid/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