Merge pull request #79162 from SataQiu/fix-test-20190619

Refactor: replace framework.Failf with e2elog.Failf
This commit is contained in:
Kubernetes Prow Robot
2019-06-21 12:17:04 -07:00
committed by GitHub
144 changed files with 767 additions and 723 deletions

View File

@@ -158,22 +158,22 @@ func getTestNodeInfo(f *framework.Framework, testName, testDesc string) map[stri
cpu, ok := node.Status.Capacity[v1.ResourceCPU]
if !ok {
framework.Failf("Fail to fetch CPU capacity value of test node.")
e2elog.Failf("Fail to fetch CPU capacity value of test node.")
}
memory, ok := node.Status.Capacity[v1.ResourceMemory]
if !ok {
framework.Failf("Fail to fetch Memory capacity value of test node.")
e2elog.Failf("Fail to fetch Memory capacity value of test node.")
}
cpuValue, ok := cpu.AsInt64()
if !ok {
framework.Failf("Fail to fetch CPU capacity value as Int64.")
e2elog.Failf("Fail to fetch CPU capacity value as Int64.")
}
memoryValue, ok := memory.AsInt64()
if !ok {
framework.Failf("Fail to fetch Memory capacity value as Int64.")
e2elog.Failf("Fail to fetch Memory capacity value as Int64.")
}
image := node.Status.NodeInfo.OSImage