Skip to content

Commit

Permalink
The error message changed
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed Nov 6, 2018
1 parent 9fd144b commit a05fe44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions metrics/prometheus/prometheus_test.go
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 a05fe44

Please sign in to comment.