From a325fb756688945a2b742d5fafc765081f4e9023 Mon Sep 17 00:00:00 2001 From: KevinBetterQ <1093850932@qq.com> Date: Wed, 1 May 2019 17:50:23 +0800 Subject: [PATCH] fix: fix a typo Signed-off-by: KevinBetterQ <1093850932@qq.com> --- prometheus/wrap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/wrap_test.go b/prometheus/wrap_test.go index 28e2470..0fbb78c 100644 --- a/prometheus/wrap_test.go +++ b/prometheus/wrap_test.go @@ -286,7 +286,7 @@ func TestWrap(t *testing.T) { err = lReg.Register(tr.collector) } if tr.registrationFails && err == nil { - t.Fatalf("registration with wrapping registry unexpectedly succeded for collector #%d", i) + t.Fatalf("registration with wrapping registry unexpectedly succeeded for collector #%d", i) } if !tr.registrationFails && err != nil { t.Fatalf("registration with wrapping registry failed for collector #%d: %s", i, err) @@ -295,7 +295,7 @@ func TestWrap(t *testing.T) { wantMF := toMetricFamilies(s.output...) gotMF, err := reg.Gather() if s.gatherFails && err == nil { - t.Fatal("gathering unexpectedly succeded") + t.Fatal("gathering unexpectedly succeeded") } if !s.gatherFails && err != nil { t.Fatal("gathering failed:", err)