1
0

[HUDI-2211] Fix NullPointerException in TestHoodieConsoleMetrics (#3331)

This commit is contained in:
Xuedong Luan
2021-07-23 11:22:54 +08:00
committed by GitHub
parent 5a2f3d439e
commit 6d592c5896

View File

@@ -38,6 +38,7 @@ public class TestHoodieConsoleMetrics {
@BeforeEach
public void start() {
when(config.getTableName()).thenReturn("console_metrics_test");
when(config.isMetricsOn()).thenReturn(true);
when(config.getMetricsReporterType()).thenReturn(MetricsReporterType.CONSOLE);
new HoodieMetrics(config, "raw_table");