Skip to content

Commit 45f8308

Browse files
Revert "Test if assertions are enabled in test JVM"
This reverts commit 79cd708.
1 parent 79cd708 commit 45f8308

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

server/src/test/java/org/opensearch/search/aggregations/AggregationCollectorManagerTests.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ public void testAggCollectorManagersWithBothGlobalNonGlobalAggregators() throws
8383
}
8484

8585
public void testAssertionWhenCollectorManagerCreatesNoOPCollector() throws Exception {
86-
try {
87-
assert false;
88-
throw new RuntimeException("Assertions not enabled!");
89-
} catch (AssertionError e) {
90-
91-
}
9286
AggregatorFactories aggregatorFactories = getAggregationFactories(globalAgg);
9387
SearchContextAggregations contextAggregations = new SearchContextAggregations(
9488
aggregatorFactories,

0 commit comments

Comments
 (0)