Skip to content

Commit

Permalink
Fix imports, goimports friendly
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Apr 22, 2024
1 parent 23b0759 commit 8298529
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions prometheus/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ import (
"github.com/prometheus/common/expfmt"
"google.golang.org/protobuf/proto"

utildiff "github.com/prometheus/client_golang/prometheus/testutil/diff"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/internal"
"github.com/prometheus/client_golang/prometheus/testutil/diff"
)

// ToFloat64 collects all Metrics from the provided Collector. It expects that
Expand Down Expand Up @@ -277,7 +276,7 @@ func compare(got, want []*dto.MetricFamily) error {
return fmt.Errorf("encoding expected metrics failed: %w", err)
}
}
if diffErr := utildiff.Diff(gotBuf.String(), wantBuf.String()); diffErr != "" {
if diffErr := diff.Diff(gotBuf.String(), wantBuf.String()); diffErr != "" {
return fmt.Errorf(diffErr)
}
return nil
Expand Down

0 comments on commit 8298529

Please sign in to comment.