r26656 - trunk/freenet/test/freenet/support

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-08 16:10:56 +0000 (Wed, 08 Apr 2009)
New Revision: 26656

Modified:
   trunk/freenet/test/freenet/support/PrioritizedSerialExecutorTest.java
Log:
JUnit for PrioritizedSerialExecutor, make sure JP is started

Modified: trunk/freenet/test/freenet/support/PrioritizedSerialExecutorTest.java
===================================================================
--- trunk/freenet/test/freenet/support/PrioritizedSerialExecutorTest.java	2009-04-08 16:10:40 UTC (rev 26655)
+++ trunk/freenet/test/freenet/support/PrioritizedSerialExecutorTest.java	2009-04-08 16:10:56 UTC (rev 26656)
@@ -126,6 +126,9 @@
 		assertEquals(0, exec.getQueueSize(4));
 		assertEquals(2, exec.getQueueSize(2));
 
+		Thread.yield();
+		Thread.sleep(10);
+
 		Q("JQ", 4, false);
 		Q("JR", 0, false);
 		assertEquals(1, exec.getQueueSize(4));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.