Author: arnaudsimon
Date: Wed Apr 16 03:32:23 2008
New Revision: 648661

URL: http://svn.apache.org/viewvc?rev=648661&view=rev
Log:
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.

Modified:
    
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java

Modified: 
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java?rev=648661&r1=648660&r2=648661&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionCloseTest.java
 Wed Apr 16 03:32:23 2008
@@ -73,6 +73,13 @@
             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);


Reply via email to