refactor: replace framework.Failf with e2elog.Failf

This commit is contained in:
SataQiu
2019-06-19 17:52:35 +08:00
parent 9162d932cf
commit 332be4b1e3
144 changed files with 767 additions and 723 deletions

View File

@@ -246,7 +246,7 @@ func verifyMemoryLimits(c clientset.Interface, expected framework.ResourceUsageP
}
}
if len(errList) > 0 {
framework.Failf("Memory usage exceeding limits:\n %s", strings.Join(errList, "\n"))
e2elog.Failf("Memory usage exceeding limits:\n %s", strings.Join(errList, "\n"))
}
}
@@ -280,7 +280,7 @@ func verifyCPULimits(expected framework.ContainersCPUSummary, actual framework.N
}
}
if len(errList) > 0 {
framework.Failf("CPU usage exceeding limits:\n %s", strings.Join(errList, "\n"))
e2elog.Failf("CPU usage exceeding limits:\n %s", strings.Join(errList, "\n"))
}
}