summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/metrics/metrics_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/metrics/metrics_test.go b/modules/metrics/metrics_test.go
index d5bdf50..9eb02fb 100644
--- a/modules/metrics/metrics_test.go
+++ b/modules/metrics/metrics_test.go
@@ -21,7 +21,7 @@ func TestMetricsUnmarshalCaddyfile(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
- if m.DisableOpenMetrics != false {
+ if m.DisableOpenMetrics {
t.Errorf("DisableOpenMetrics should've been false: %v", m.DisableOpenMetrics)
}
@@ -32,7 +32,7 @@ func TestMetricsUnmarshalCaddyfile(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}
- if m.DisableOpenMetrics != true {
+ if !m.DisableOpenMetrics {
t.Errorf("DisableOpenMetrics should've been true: %v", m.DisableOpenMetrics)
}