diff --git a/tests/shared/crclient/client.go b/tests/shared/crclient/client.go index 3ecf2979..ee6be344 100644 --- a/tests/shared/crclient/client.go +++ b/tests/shared/crclient/client.go @@ -127,7 +127,10 @@ func (f Client) listPodList(list *corev1.PodList) error { func (f Client) listNodeList(list *corev1.NodeList) error { for k, v := range f.Objects { if k.Kind == "Node" { - list.Items = append(list.Items, *v.(*corev1.Node)) + node, ok := v.(*corev1.Node) + if ok { + list.Items = append(list.Items, *node) + } } } return nil