@@ -108,7 +108,7 @@ func TestStatter(t *testing.T) {
108
108
fs := initFS (t , fsContainerCgroupV1 )
109
109
fakeWait := func (time.Duration ) {
110
110
// Fake 1 second in ns of usage
111
- mungeFS (t , fs , cgroupV1CPUAcctUsage , "1000000000 " )
111
+ mungeFS (t , fs , cgroupV1CPUAcctUsage , "100000000 " )
112
112
}
113
113
s , err := New (WithFS (fs ), withWait (fakeWait ))
114
114
require .NoError (t , err )
@@ -126,7 +126,7 @@ func TestStatter(t *testing.T) {
126
126
fs := initFS (t , fsContainerCgroupV1NoLimit )
127
127
fakeWait := func (time.Duration ) {
128
128
// Fake 1 second in ns of usage
129
- mungeFS (t , fs , cgroupV1CPUAcctUsage , "1000000000 " )
129
+ mungeFS (t , fs , cgroupV1CPUAcctUsage , "100000000 " )
130
130
}
131
131
s , err := New (WithFS (fs ), withNproc (2 ), withWait (fakeWait ))
132
132
require .NoError (t , err )
@@ -160,8 +160,7 @@ func TestStatter(t *testing.T) {
160
160
t .Parallel ()
161
161
fs := initFS (t , fsContainerCgroupV2 )
162
162
fakeWait := func (time.Duration ) {
163
- // Fake 1 second in ns of usage
164
- mungeFS (t , fs , cgroupV2CPUStat , "usage_usec 1000000" )
163
+ mungeFS (t , fs , cgroupV2CPUStat , "usage_usec 100000" )
165
164
}
166
165
s , err := New (WithFS (fs ), withWait (fakeWait ))
167
166
require .NoError (t , err )
@@ -178,8 +177,7 @@ func TestStatter(t *testing.T) {
178
177
t .Parallel ()
179
178
fs := initFS (t , fsContainerCgroupV2NoLimit )
180
179
fakeWait := func (time.Duration ) {
181
- // Fake 1 second in ns of usage
182
- mungeFS (t , fs , cgroupV2CPUStat , "usage_usec 1000000" )
180
+ mungeFS (t , fs , cgroupV2CPUStat , "usage_usec 100000" )
183
181
}
184
182
s , err := New (WithFS (fs ), withNproc (2 ), withWait (fakeWait ))
185
183
require .NoError (t , err )
0 commit comments