You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2015/07/08 10:54:54 UTC

svn commit: r1689819 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java

Author: dweiss
Date: Wed Jul  8 08:54:54 2015
New Revision: 1689819

URL: http://svn.apache.org/r1689819
Log:
LUCENE-6666: reverting this from trunk as the code doesn't use a separate thread killer thread (thanks Uwe).

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java?rev=1689819&r1=1689818&r2=1689819&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java Wed Jul  8 08:54:54 2015
@@ -30,22 +30,18 @@ import java.util.stream.IntStream;
 
 import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.NamedThreadFactory;
+import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
 import com.carrotsearch.randomizedtesting.RandomizedContext;
 import com.carrotsearch.randomizedtesting.RandomizedRunner;
-import com.carrotsearch.randomizedtesting.annotations.ThreadLeakLingering;
-
-import static org.junit.Assert.fail;
-import static org.junit.Assert.assertEquals;
 
 /* WARNING: This test does *not* extend LuceneTestCase to prevent static class
  * initialization when spawned as subprocess (and please let default codecs alive)! */
 
 @RunWith(RandomizedRunner.class)
-@ThreadLeakLingering(linger = 5000) // Linger a bit waiting for threadpool threads to die.
-public class TestCodecLoadingDeadlock {
+public class TestCodecLoadingDeadlock extends Assert {
   
   @Test
   public void testDeadlock() throws Exception {