Skip to content

Commit bdf4ad9

Browse files
committed
Attempt #2 For Testify Equality Fix
1 parent f2b872a commit bdf4ad9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ require (
1818
github.com/evanphx/json-patch v0.0.0-20180720181644-f195058310bd
1919
github.com/gofrs/uuid v3.2.0+incompatible
2020
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
21+
github.com/google/go-cmp v0.3.1
2122
github.com/hashicorp/hcl v1.0.0 // indirect
2223
github.com/influxdata/influxdb v1.6.1 // indirect
2324
github.com/julienschmidt/httprouter v1.1.0

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf
3535
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
3636
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
3737
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
38+
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
39+
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
3840
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
3941
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
4042
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=

pbsmetrics/prometheus/preload_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package prometheusmetrics
22

33
import (
4-
"reflect"
54
"testing"
65

6+
"github.com/google/go-cmp/cmp"
7+
78
"github.com/prometheus/client_golang/prometheus"
89
"github.com/stretchr/testify/assert"
910
)
@@ -59,6 +60,6 @@ func TestRegisterLabelPermutations(t *testing.T) {
5960
resultLabels = append(resultLabels, label)
6061
})
6162

62-
assert.True(t, reflect.DeepEqual(test.expectedLabels, resultLabels))
63+
assert.True(t, cmp.Equal(test.expectedLabels, resultLabels))
6364
}
6465
}

0 commit comments

Comments
 (0)