mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct/cg/fs/*_test.go: use t.TempDir
This simplifies the code as no explicit cleanup is required. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -27,7 +27,6 @@ const (
|
||||
|
||||
func TestCpuacctStats(t *testing.T) {
|
||||
helper := NewCgroupTestUtil("cpuacct.", t)
|
||||
defer helper.cleanup()
|
||||
helper.writeFileContents(map[string]string{
|
||||
"cpuacct.usage": cpuAcctUsageContents,
|
||||
"cpuacct.usage_percpu": cpuAcctUsagePerCPUContents,
|
||||
@@ -68,7 +67,6 @@ func TestCpuacctStats(t *testing.T) {
|
||||
|
||||
func TestCpuacctStatsWithoutUsageAll(t *testing.T) {
|
||||
helper := NewCgroupTestUtil("cpuacct.", t)
|
||||
defer helper.cleanup()
|
||||
helper.writeFileContents(map[string]string{
|
||||
"cpuacct.usage": cpuAcctUsageContents,
|
||||
"cpuacct.usage_percpu": cpuAcctUsagePerCPUContents,
|
||||
|
||||
Reference in New Issue
Block a user