Fix test order pkg/kubelet/winstats/winstats_test.go

This commit is contained in:
muyangren2 2022-07-26 10:05:59 +08:00
parent 4a05a32c30
commit 42765566e1

View File

@ -147,7 +147,7 @@ func TestConvertCPUValue(t *testing.T) {
for _, tc := range testCases {
p := perfCounterNodeStatsClient{}
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,
}
cpuUsageNanoCores := p.getCPUUsageNanoCores()
assert.Equal(t, cpuUsageNanoCores, tc.expected)
assert.Equal(t, tc.expected, cpuUsageNanoCores)
}
}