Skip to content

Commit a984c2b

Browse files
committed
test: refactor container_inspect_linux_test.go to use Tigron
Signed-off-by: Joonsoo Won <wonjs0116@gmail.com>
1 parent 6f7015c commit a984c2b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/nerdctl/container/container_inspect_linux_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,7 @@ func TestContainerInspectHostConfigPIDDefaults(t *testing.T) {
669669
func TestContainerInspectDevices(t *testing.T) {
670670
testCase := nerdtest.Setup()
671671

672-
testCase.Require = require.All(
673-
require.Not(nerdtest.Rootless),
674-
require.Not(nerdtest.CGroup),
675-
)
672+
testCase.Require = nerdtest.CgroupsAccessible
676673

677674
testCase.Setup = func(data test.Data, helpers test.Helpers) {
678675
// Create a temporary directory
@@ -731,6 +728,7 @@ func TestContainerInspectBlkioSettings(t *testing.T) {
731728
// Some of the blkio settings are not supported in cgroup v1.
732729
// So skip this test if running on cgroup v1
733730
testCase.Require = require.All(
731+
require.Not(nerdtest.Docker),
734732
require.Not(nerdtest.Rootless),
735733
require.Not(nerdtest.CGroup),
736734
)

0 commit comments

Comments
 (0)