chore(cli): do not assert non-zero host cpu usage (#8097)

This commit is contained in:
Cian Johnston
2023-06-20 13:03:56 +00:00
committed by GitHub
parent 0f754f0bb9
commit eb0783ff24
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func TestStatter(t *testing.T) {
t.Parallel()
cpu, err := s.HostCPU()
require.NoError(t, err)
assert.NotZero(t, cpu.Used)
// assert.NotZero(t, cpu.Used) // HostCPU can sometimes be zero.
assert.NotZero(t, cpu.Total)
assert.Equal(t, "cores", cpu.Unit)
})