Skip to content

Commit

Permalink
SOLR-10654: PrometheusResponseWriter test tweaks
Browse files Browse the repository at this point in the history
 - Fix MetricsHandlerTest

 - AwaitsFix TestPrometheusResponseWriter pending SOLR-17368
  • Loading branch information
hossman committed Jul 12, 2024
1 parent 991e761 commit 6967c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ public void testPrometheusMetricsJvm() throws Exception {
actualGaugeDataPoint =
getGaugeDatapointSnapshot(
actualSnapshot, Labels.of("item", "committed", "space", "CodeHeap-'non-nmethods'"));
assertEquals(0, actualGaugeDataPoint.getValue(), 0);
assertNotNull(actualGaugeDataPoint);

actualSnapshot = getMetricSnapshot(actualSnapshots, "solr_metrics_jvm_buffers");
actualGaugeDataPoint =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.junit.Test;

/** Tests the {@link PrometheusResponseWriter} behavior */
@LuceneTestCase.AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/SOLR-17368")
public class TestPrometheusResponseWriter extends SolrTestCaseJ4 {

@ClassRule public static SolrJettyTestRule solrClientTestRule = new SolrJettyTestRule();
Expand Down

0 comments on commit 6967c7b

Please sign in to comment.