File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func TestStatter(t *testing.T) {
69
69
t .Parallel ()
70
70
cpu , err := s .HostCPU ()
71
71
require .NoError (t , err )
72
- assert .NotZero (t , cpu .Used )
72
+ // assert.NotZero(t, cpu.Used) // HostCPU can sometimes be zero.
73
73
assert .NotZero (t , cpu .Total )
74
74
assert .Equal (t , "cores" , cpu .Unit )
75
75
})
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ func TestStatCPUCmd(t *testing.T) {
97
97
s := buf .String ()
98
98
tmp := clistat.Result {}
99
99
require .NoError (t , json .NewDecoder (strings .NewReader (s )).Decode (& tmp ))
100
- require .NotZero (t , tmp .Used )
100
+ // require.NotZero(t, tmp.Used) // Host CPU can sometimes be zero.
101
101
require .NotNil (t , tmp .Total )
102
102
require .NotZero (t , * tmp .Total )
103
103
require .Equal (t , "cores" , tmp .Unit )
You can’t perform that action at this time.
0 commit comments