zentol commented on a change in pull request #18821:
URL: https://github.com/apache/flink/pull/18821#discussion_r809498109



##########
File path: 
flink-metrics/flink-metrics-slf4j/src/test/java/org/apache/flink/metrics/slf4j/Slf4jReporterTest.java
##########
@@ -101,16 +96,17 @@ public void testAddGauge() throws Exception {
                         + ": null";
 
         reporter.report();
-        assertThat(testLoggerResource.getMessages(), 
hasItem(containsString(expectedGaugeReport)));
+        assertThat(testLoggerResource.getMessages())
+                .anyMatch(logOutput -> 
logOutput.contains(expectedGaugeReport));
     }
 
     @Test
-    public void testAddMeter() throws Exception {
+    void testAddMeter() throws Exception {
         String meterName = "meter";
 
         Meter meter = new MeterView(5);
         reporter.notifyOfAddedMetric(meter, meterName, metricGroup);
-        assertTrue(reporter.getMeters().containsKey(meter));
+        assertThat(reporter.getMeters().containsKey(meter));

Review comment:
       oh boy this is gonna be fun to double-check in the future :/




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to