mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-23 02:47:57 +00:00
e2e: fix logging the latest cpu summary
This commit is contained in:
@@ -96,7 +96,6 @@ func runResourceTrackingTest(framework *Framework, podsPerNode int, nodeNames se
|
||||
|
||||
By("Reporting overall resource usage")
|
||||
logPodsOnNodes(framework.Client, nodeNames.List())
|
||||
rm.LogLatest()
|
||||
usageSummary, err := rm.GetLatest()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Logf("%s", rm.FormatResourceUsage(usageSummary))
|
||||
|
@@ -585,7 +585,7 @@ func (r *resourceMonitor) LogLatest() {
|
||||
if err != nil {
|
||||
Logf("%v", err)
|
||||
}
|
||||
r.FormatResourceUsage(summary)
|
||||
Logf(r.FormatResourceUsage(summary))
|
||||
}
|
||||
|
||||
func (r *resourceMonitor) FormatResourceUsage(s resourceUsagePerNode) string {
|
||||
|
Reference in New Issue
Block a user