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
commit53ed1108e64c23e9f6bcc31ff41c0b49576a3af6 (patch)
treeb3554e2dd059781ea644eb5a45a89bbbae6c02ff
parent51b760c29f83dbe06561045aabbb1cc679b38d79 (diff)
downloadqpid-python-53ed1108e64c23e9f6bcc31ff41c0b49576a3af6.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/qpid@648661 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java7
1 files changed, 7 insertions, 0 deletions
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<Thread,StackTraceElement[]> after = Thread.getAllStackTraces();
Map<Thread,StackTraceElement[]> delta = new HashMap<Thread,StackTraceElement[]>(after);