[
https://issues.apache.org/jira/browse/HUDI-1620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285112#comment-17285112
]
Raymond Xu commented on HUDI-1620:
----------------------------------
[~liujinhui]
The test passes when run with the whole package of tests but fails when run
separately.
Would you be able to look into this?
Also I think the way to mock this should be changed to
{{@ExtendWith(MockitoExtension.class)}}
{{public class TestPushGateWayReporter {}}
{{ @Mock}}
{{ HoodieWriteConfig config;}}
> TestPushGateWayReporter failed when run separately
> --------------------------------------------------
>
> Key: HUDI-1620
> URL: https://issues.apache.org/jira/browse/HUDI-1620
> Project: Apache Hudi
> Issue Type: Improvement
> Components: Testing
> Reporter: Raymond Xu
> Priority: Minor
> Fix For: 0.8.0
>
>
> org.apache.hudi.metrics.prometheus.TestPushGateWayReporter#testRegisterGauge
> when run separately, it failed with
> {{org.apache.hudi.exception.HoodieException:
> java.lang.IllegalArgumentExceptionorg.apache.hudi.exception.HoodieException:
> java.lang.IllegalArgumentException}}
> {{ at org.apache.hudi.metrics.Metrics.init(Metrics.java:100) at
> org.apache.hudi.metrics.HoodieMetrics.<init>(HoodieMetrics.java:59) at
> org.apache.hudi.metrics.prometheus.TestPushGateWayReporter.testRegisterGauge(TestPushGateWayReporter.java:45)}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)