Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Follow up cleanups to LUCENE-5622.

Dawid Weiss13767516cafd
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 0faf7cfec66..8b75587e2ea 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -123,6 +123,11 @@ Bug fixes
* LUCENE-5559: Add additional argument validation for CapitalizationFilter
and CodepointCountFilter. (Ahmet Arslan via Robert Muir)
+Test Framework
+
+* LUCENE-5622: Fail tests if they print over the given limit of bytes to
+ System.out or System.err. (Robert Muir, Dawid Weiss)
+
======================= Lucene 4.8.0 =======================
System Requirements
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleLimitSysouts.java b/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleLimitSysouts.java
index 5298d7d640d..5885d823363 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleLimitSysouts.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleLimitSysouts.java
@@ -192,8 +192,8 @@ public class TestRuleLimitSysouts extends TestRuleAdapter {
}
/**
- * We're only interested in failing the suite if it was successful. Otherwise
- * just propagate the original problem and don't bother.
+ * We're only interested in failing the suite if it was successful (otherwise
+ * just propagate the original problem and don't bother doing anything else).
*/
@Override
protected void afterIfSuccessful() throws Throwable {
@@ -219,9 +219,6 @@ public class TestRuleLimitSysouts extends TestRuleAdapter {
}
}
- /**
- * Restore original streams.
- */
@Override
protected void afterAlways(List<Throwable> errors) throws Throwable {
resetCaptureState();