Changed code to improve output for files under test/e2e/node

This commit is contained in:
Nikhil Sharma 2021-11-04 20:09:59 +05:30
parent 08bf54678e
commit 0316542704

View File

@ -360,6 +360,8 @@ func getNpdPodStat(f *framework.Framework, nodeName string) (cpuUsage, rss, work
hasNpdPod = true
break
}
framework.ExpectEqual(hasNpdPod, true)
if !hasNpdPod {
framework.Failf("No node-problem-detector pod is present in %+v", summary.Pods)
}
return
}