From 4f1ed4ee8669f7066cbfba57684e55e061e21925 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 20 Nov 2013 20:59:11 +0000 Subject: [PATCH] tests: check for fails again - if there was a fail and we compare against control, it's going to fail later anyway git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1543944 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/cloud/ChaosMonkeyNothingIsSafeTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java index 0e161120638..f34ea1f43b7 100644 --- a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java @@ -164,12 +164,11 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase } // we expect full throttle fails, but cloud client should not easily fail - // but it's allowed to fail and sometimes does, so commented out for now -// for (StopableThread indexThread : threads) { -// if (indexThread instanceof StopableIndexingThread && !(indexThread instanceof FullThrottleStopableIndexingThread)) { -// assertEquals(0, ((StopableIndexingThread) indexThread).getFails()); -// } -// } + for (StopableThread indexThread : threads) { + if (indexThread instanceof StopableIndexingThread && !(indexThread instanceof FullThrottleStopableIndexingThread)) { + assertEquals(0, ((StopableIndexingThread) indexThread).getFails()); + } + } // try and wait for any replications and what not to finish...