diff --git a/test/conformance/tests/sriov_operator.go b/test/conformance/tests/sriov_operator.go index 24248f8cd..4e02df30a 100644 --- a/test/conformance/tests/sriov_operator.go +++ b/test/conformance/tests/sriov_operator.go @@ -1532,6 +1532,10 @@ func discoverResourceForMainSriov(nodes *cluster.EnabledNodes) (*sriovv1.Interfa executorPod := createCustomTestPod(node, []string{}, true) mainDevice := findMainSriovDevice(executorPod, nodeDevices) + if mainDevice == nil { + return nil, "", "", false + } + nodeState, err := clients.SriovNetworkNodeStates(operatorNamespace).Get(context.Background(), node, metav1.GetOptions{}) Expect(err).ToNot(HaveOccurred()) resourceName, ok := findSuitableResourceForMain(mainDevice, nodeState)