(t *testing.T, fs afero.Fs, quota, period string)
| 16 | } |
| 17 | |
| 18 | func FakeCPUGroups(t *testing.T, fs afero.Fs, quota, period string) { |
| 19 | err := afero.WriteFile(fs, xunix.CPUPeriodPathCGroupV1, []byte(period), 0o600) |
| 20 | require.NoError(t, err) |
| 21 | |
| 22 | err = afero.WriteFile(fs, xunix.CPUQuotaPathCGroupV1, []byte(quota), 0o600) |
| 23 | require.NoError(t, err) |
| 24 | } |