mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Correct an error message
This commit is contained in:
parent
a702be8e63
commit
c1eee00a57
@ -1064,7 +1064,7 @@ func TestGetContainerStatsWithoutCadvisor(t *testing.T) {
|
|||||||
t.Errorf("MaxMemoryUsage is %v even if there's no cadvisor", stats.StatsPercentiles.MaxMemoryUsage)
|
t.Errorf("MaxMemoryUsage is %v even if there's no cadvisor", stats.StatsPercentiles.MaxMemoryUsage)
|
||||||
}
|
}
|
||||||
if len(stats.StatsPercentiles.CpuUsagePercentiles) > 0 {
|
if len(stats.StatsPercentiles.CpuUsagePercentiles) > 0 {
|
||||||
t.Errorf("Cpu usage percentiles is not empty (%+v) even if there's no cadvisor", stats.StatsPercentiles.CpuUsagePercentiles)
|
t.Errorf("CPU usage percentiles is not empty (%+v) even if there's no cadvisor", stats.StatsPercentiles.CpuUsagePercentiles)
|
||||||
}
|
}
|
||||||
if len(stats.StatsPercentiles.MemoryUsagePercentiles) > 0 {
|
if len(stats.StatsPercentiles.MemoryUsagePercentiles) > 0 {
|
||||||
t.Errorf("Memory usage percentiles is not empty (%+v) even if there's no cadvisor", stats.StatsPercentiles.MemoryUsagePercentiles)
|
t.Errorf("Memory usage percentiles is not empty (%+v) even if there's no cadvisor", stats.StatsPercentiles.MemoryUsagePercentiles)
|
||||||
|
Loading…
Reference in New Issue
Block a user