From c8d1b765fbc9dccb36a38fd45ee65a1746221d20 Mon Sep 17 00:00:00 2001 From: foghost Date: Mon, 28 Aug 2023 11:11:31 +0800 Subject: [PATCH] fix unit test --- config/metric_config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/metric_config_test.go b/config/metric_config_test.go index 14804b3c7c..70dce11b1e 100644 --- a/config/metric_config_test.go +++ b/config/metric_config_test.go @@ -27,7 +27,7 @@ import ( func TestMetricConfigBuilder(t *testing.T) { config := NewMetricConfigBuilder().Build() - err := config.Init() + err := config.Init(&RootConfig{Application: &ApplicationConfig{Name: "dubbo", Version: "1.0.0"}}) assert.NoError(t, err) reporterConfig := config.ToReporterConfig() assert.Equal(t, string(reporterConfig.Mode), "pull")