summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2008-04-16 10:32:23 +0000
committerArnaud Simon <arnaudsimon@apache.org>2008-04-16 10:32:23 +0000
commit32e095be68143b3672b51df81409e67415cb03df (patch)
tree627b059fae52b044126c2c25a91682a5aeaca1db
parent81f8d4b31e49186f01a0936fed578ea26f25b060 (diff)
downloadqpid-python-32e095be68143b3672b51df81409e67415cb03df.tar.gz
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
-rw-r--r--qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java7
1 files changed, 7 insertions, 0 deletions
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<Thread,StackTraceElement[]> after = Thread.getAllStackTraces();
Map<Thread,StackTraceElement[]> delta = new HashMap<Thread,StackTraceElement[]>(after);