Skip to content

Commit

Permalink
The error message changed (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon authored Nov 6, 2018
1 parent 9fd144b commit 81e1437
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions metrics/prometheus/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import (
"strings"
"testing"

stdprometheus "github.com/prometheus/client_golang/prometheus"

"github.com/go-kit/kit/metrics/teststat"
stdprometheus "github.com/prometheus/client_golang/prometheus"
)

func TestCounter(t *testing.T) {
Expand Down Expand Up @@ -198,7 +197,7 @@ func TestInconsistentLabelCardinality(t *testing.T) {
if !ok {
t.Fatalf("expected error, got %s", reflect.TypeOf(x))
}
if want, have := "inconsistent label cardinality", err.Error(); want != have {
if want, have := "inconsistent label cardinality", err.Error(); !strings.HasPrefix(have, want) {
t.Fatalf("want %q, have %q", want, have)
}
}()
Expand Down

0 comments on commit 81e1437

Please sign in to comment.