mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
e2e: fix logging the latest cpu summary
This commit is contained in:
parent
f52e0e5e1f
commit
cdece9922b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user