fix: fix a typo

Signed-off-by: KevinBetterQ <1093850932@qq.com>
This commit is contained in:
KevinBetterQ 2019-05-01 17:50:23 +08:00
parent 3f6cbd9560
commit a325fb7566
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ func TestWrap(t *testing.T) {
err = lReg.Register(tr.collector) err = lReg.Register(tr.collector)
} }
if tr.registrationFails && err == nil { 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 { if !tr.registrationFails && err != nil {
t.Fatalf("registration with wrapping registry failed for collector #%d: %s", i, err) 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...) wantMF := toMetricFamilies(s.output...)
gotMF, err := reg.Gather() gotMF, err := reg.Gather()
if s.gatherFails && err == nil { if s.gatherFails && err == nil {
t.Fatal("gathering unexpectedly succeded") t.Fatal("gathering unexpectedly succeeded")
} }
if !s.gatherFails && err != nil { if !s.gatherFails && err != nil {
t.Fatal("gathering failed:", err) t.Fatal("gathering failed:", err)