mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Increase sort determinism.
This commit is contained in:
@@ -18,7 +18,6 @@ package crds
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"sigs.k8s.io/kustomize/pkg/gvk"
|
||||
@@ -174,10 +173,6 @@ func TestRegisterCRD(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
sort.Slice(refpathconfigs, func(i, j int) bool {
|
||||
return refpathconfigs[i].Gvk.String() < refpathconfigs[j].Gvk.String()
|
||||
})
|
||||
|
||||
expected := &transformerconfig.TransformerConfig{
|
||||
NameReference: refpathconfigs,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user