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:
parent
b1805a9a4d
commit
61d7d16e0e
|
@ -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))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue