From 5c714e8147b2476c46bf3991de6913a4309c6846 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Sun, 20 May 2012 18:39:51 +0000 Subject: [PATCH] fix testcase to not check unreliable thread state in join helper git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1340794 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/index/TestDocumentsWriterStallControl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java index 0252c9f1aa6..46052131015 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java @@ -27,7 +27,6 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.apache.lucene.index.DocumentsWriterStallControl.MemoryController; import org.apache.lucene.util.LuceneTestCase; -import com.carrotsearch.randomizedtesting.annotations.Repeat; import com.carrotsearch.randomizedtesting.annotations.ThreadLeaks; /** @@ -59,7 +58,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { memCtrl.netBytes = 50; ctrl.updateStalled(memCtrl); assertFalse(ctrl.anyStalledThreads()); - join(waitThreads, 100); + join(waitThreads, 500); } public void testRandom() throws InterruptedException { @@ -297,8 +296,6 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase { throws InterruptedException { for (Thread thread : toJoin) { thread.join(timeout); - assertEquals(thread.getState().toString(), Thread.State.TERMINATED, - thread.getState()); } }