mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Refactor diff into sub pkg
This commit is contained in:
@@ -28,7 +28,7 @@ import (
|
||||
"k8s.io/kubernetes/pkg/runtime"
|
||||
"k8s.io/kubernetes/pkg/storage/etcd/etcdtest"
|
||||
etcdtesting "k8s.io/kubernetes/pkg/storage/etcd/testing"
|
||||
"k8s.io/kubernetes/pkg/util"
|
||||
"k8s.io/kubernetes/pkg/util/diff"
|
||||
)
|
||||
|
||||
func newStorage(t *testing.T) (*REST, *StatusREST, *etcdtesting.EtcdTestServer) {
|
||||
@@ -178,6 +178,6 @@ func TestUpdateStatus(t *testing.T) {
|
||||
pvOut := obj.(*api.PersistentVolume)
|
||||
// only compare the relevant change b/c metadata will differ
|
||||
if !api.Semantic.DeepEqual(pvIn.Status, pvOut.Status) {
|
||||
t.Errorf("unexpected object: %s", util.ObjectDiff(pvIn.Status, pvOut.Status))
|
||||
t.Errorf("unexpected object: %s", diff.ObjectDiff(pvIn.Status, pvOut.Status))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user