File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
8
8
github.com/go-git/go-git/v5 v5.1.0
9
9
github.com/go-logr/logr v0.3.0
10
10
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
11
+ github.com/google/go-cmp v0.5.2
11
12
github.com/prometheus/client_golang v1.7.1
12
13
github.com/stretchr/testify v1.6.1
13
14
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ import (
20
20
"context"
21
21
"testing"
22
22
23
- "github.com/stretchr/testify/assert"
23
+ "github.com/google/go-cmp/cmp"
24
+ "github.com/google/go-cmp/cmp/cmpopts"
25
+
24
26
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
25
27
"sigs.k8s.io/kubebuilder-declarative-pattern/pkg/patterns/declarative/pkg/manifest"
26
28
)
@@ -222,7 +224,9 @@ func Test_Sort(t *testing.T) {
222
224
t .Run (tc .name , func (t * testing.T ) {
223
225
ctx := context .Background ()
224
226
tc .input .Sort (DefaultObjectOrder (ctx ))
225
- assert .Equal (t , tc .expected , tc .input )
227
+ if diff := cmp .Diff (tc .expected , tc .input , cmpopts .IgnoreUnexported (manifest.Object {})); diff != "" {
228
+ t .Errorf ("sort result mismatch (-want +got):\n %s" , diff )
229
+ }
226
230
})
227
231
}
228
232
You can’t perform that action at this time.
0 commit comments