From d3e2f5746afa4d437191735603807b216fbbbdd8 Mon Sep 17 00:00:00 2001 From: Zheming Li Date: Mon, 12 Jul 2021 11:35:51 +0800 Subject: [PATCH] Fix same tmp dir in freezer v2 tests --- src/cgroups/v2/freezer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cgroups/v2/freezer.rs b/src/cgroups/v2/freezer.rs index ef0643909..5827f813d 100644 --- a/src/cgroups/v2/freezer.rs +++ b/src/cgroups/v2/freezer.rs @@ -178,8 +178,8 @@ mod tests { #[test] fn test_set_freezer_state_error() { - let tmp = - create_temp_dir("test_set_freezer_state").expect("create temp directory for test"); + let tmp = create_temp_dir("test_set_freezer_state_error") + .expect("create temp directory for test"); set_fixture(&tmp, CGROUP_FREEZE, "").expect("Set fixure for freezer state"); set_fixture(&tmp, CGROUP_EVENTS, "").expect("Set fixure for freezer state");