Merge pull request #111418 from muyangren2/winstats_assert

Fix test order pkg/kubelet/winstats/winstats_test.go
This commit is contained in:
Kubernetes Prow Robot 2022-07-29 19:29:29 -07:00 committed by GitHub
commit d838a8647b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}
}