zentol commented on a change in pull request #7968: [FLINK-11692] [Datadog 
Reporter] added proxy to datadog reporter
URL: https://github.com/apache/flink/pull/7968#discussion_r265500760
 
 

 ##########
 File path: 
flink-metrics/flink-metrics-datadog/src/test/java/org/apache/flink/metrics/datadog/DatadogHttpClientTest.java
 ##########
 @@ -53,14 +59,37 @@ public void mockSystemMillis() {
                
PowerMockito.when(DMetric.getUnixEpochTimestamp()).thenReturn(MOCKED_SYSTEM_MILLIS);
        }
 
+       @Before
+       public void suppressValidateApiKey(){
+               
PowerMockito.suppress(MemberMatcher.method(DatadogHttpClient.class, 
"validateApiKey"));
 
 Review comment:
   I'd rather catch the exception and continue with the test.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to