Skip to content

Commit

Permalink
Revert check due to missing configuration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Skeen committed May 5, 2020
1 parent ccc3591 commit c674dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporter/metrics_test.go
Expand Up @@ -260,7 +260,8 @@ func initCumulativeRegex(t *testing.T) *oniguruma.Regex {

func newMetricConfig(t *testing.T, cfg *configuration.MetricConfig) *configuration.MetricConfig {
// Handle default for counter's value
if cfg.Type == "counter" && len(cfg.Value) == 0 {
// Note: cfg.Type is not set here
if len(cfg.Value) == 0 {
cfg.Value = "1.0"
}
err := cfg.InitTemplates()
Expand Down

0 comments on commit c674dc0

Please sign in to comment.