Merge pull request #564 from KevinBetterQ/fix-misspell

fix: fix a typo
This commit is contained in:
Björn Rabenstein 2019-05-02 00:05:34 +02:00 committed by GitHub
commit 6aba2189eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
}
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)