Replace apimachinery diff.StringDiff with cmp

I forced failures of most of these tests and verified readability

Kubernetes-commit: 97bab44cae3857710bfb072d233e654784082ee3
This commit is contained in:
Tim Hockin 2023-03-23 11:10:32 -07:00 committed by Kubernetes Publisher
parent b1805a9a4d
commit 61d7d16e0e
1 changed files with 0 additions and 6 deletions

View File

@ -2061,12 +2061,6 @@ func TestWatchTable(t *testing.T) {
actual = append(actual, &event)
}
if !reflect.DeepEqual(test.expected, actual) {
for i := range test.expected {
if i >= len(actual) {
break
}
t.Logf("%s", diff.StringDiff(string(test.expected[i].Object.Raw), string(actual[i].Object.Raw)))
}
t.Fatalf("unexpected: %s", diff.ObjectReflectDiff(test.expected, actual))
}
})