mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #111418 from muyangren2/winstats_assert
Fix test order pkg/kubelet/winstats/winstats_test.go
This commit is contained in:
commit
d838a8647b
@ -147,7 +147,7 @@ func TestConvertCPUValue(t *testing.T) {
|
|||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
p := perfCounterNodeStatsClient{}
|
p := perfCounterNodeStatsClient{}
|
||||||
newValue := p.convertCPUValue(cpuCores, tc.cpuValue)
|
newValue := p.convertCPUValue(cpuCores, tc.cpuValue)
|
||||||
assert.Equal(t, newValue, tc.expected)
|
assert.Equal(t, tc.expected, newValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ func TestGetCPUUsageNanoCores(t *testing.T) {
|
|||||||
previousValue: tc.previousValue,
|
previousValue: tc.previousValue,
|
||||||
}
|
}
|
||||||
cpuUsageNanoCores := p.getCPUUsageNanoCores()
|
cpuUsageNanoCores := p.getCPUUsageNanoCores()
|
||||||
assert.Equal(t, cpuUsageNanoCores, tc.expected)
|
assert.Equal(t, tc.expected, cpuUsageNanoCores)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user