Fix up legacy printer table adapter
Kubernetes-commit: 86c2158bb038f521b39e4c7902e5b34686b9d254
This commit is contained in:
parent
5ea0fc709f
commit
5ea36f1aa3
|
|
@ -1312,7 +1312,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc
|
||||||
if len(columns) == 0 {
|
if len(columns) == 0 {
|
||||||
t.Errorf("unexpected number of columns: %v", len(columns))
|
t.Errorf("unexpected number of columns: %v", len(columns))
|
||||||
}
|
}
|
||||||
if columns[0].Name != "Name" || columns[0].Type != "string" || columns[0].Format != "name" {
|
if !strings.EqualFold(columns[0].Name, "Name") || columns[0].Type != "string" || columns[0].Format != "name" {
|
||||||
t.Errorf("expect column 0 to be the name column: %#v", columns[0])
|
t.Errorf("expect column 0 to be the name column: %#v", columns[0])
|
||||||
}
|
}
|
||||||
for j, column := range columns {
|
for j, column := range columns {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue