LUCENE-6666: reverting this from trunk as the code doesn't use a separate thread killer thread (thanks Uwe).

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1689819 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2015-07-08 08:54:54 +00:00
parent 605f8df4d1
commit 4821a773ce
1 changed files with 2 additions and 6 deletions

View File

@ -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 {