mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
cache mutation detector: use correct diff function
The cache mutation detector must use a diff function that is designed to show differences that cause reflect.DeepEqual to return false. Signed-off-by: Monis Khan <mkhan@redhat.com>
This commit is contained in:
parent
32ec6c212e
commit
dd4f53cd45
@ -114,7 +114,7 @@ func (d *defaultCacheMutationDetector) CompareObjects() {
|
||||
altered := false
|
||||
for i, obj := range d.cachedObjs {
|
||||
if !reflect.DeepEqual(obj.cached, obj.copied) {
|
||||
fmt.Printf("CACHE %s[%d] ALTERED!\n%v\n", d.name, i, diff.ObjectDiff(obj.cached, obj.copied))
|
||||
fmt.Printf("CACHE %s[%d] ALTERED!\n%v\n", d.name, i, diff.ObjectGoPrintSideBySide(obj.cached, obj.copied))
|
||||
altered = true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user