Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
FoghostCn committed Aug 28, 2023
1 parent 01fcc09 commit c8d1b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/metric_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c8d1b76

Please sign in to comment.