Skip to content

Apache Lucene open-source search software

tests: check for fails again - if there was a fail and we compare against control, it's going to fail later anyway

Mark Robert Miller4f1ed4ee8669
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...