diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-07 12:49:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 12:49:57 +0000 |
commit | 23ce826a84db81b834ef62584b6d3ffb3e0084fd (patch) | |
tree | d647ba1e6650f0a30656a8022acc74d5dea9323d /pkg/cgroups/cgroups_test.go | |
parent | 43077291ac8cafeea5b75ccbb37d929b079bf235 (diff) | |
parent | 2130d185395b897798dcb1c17bbaf147dfb4da3c (diff) | |
download | podman-23ce826a84db81b834ef62584b6d3ffb3e0084fd.tar.gz podman-23ce826a84db81b834ef62584b6d3ffb3e0084fd.tar.bz2 podman-23ce826a84db81b834ef62584b6d3ffb3e0084fd.zip |
Merge pull request #12498 from rhatdan/cgroups
Update vendor or containers/common moving pkg/cgroups there
Diffstat (limited to 'pkg/cgroups/cgroups_test.go')
-rw-r--r-- | pkg/cgroups/cgroups_test.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pkg/cgroups/cgroups_test.go b/pkg/cgroups/cgroups_test.go deleted file mode 100644 index 22d5efb76..000000000 --- a/pkg/cgroups/cgroups_test.go +++ /dev/null @@ -1,32 +0,0 @@ -package cgroups - -import ( - "testing" - - "github.com/containers/podman/v3/pkg/rootless" - spec "github.com/opencontainers/runtime-spec/specs-go" -) - -func TestCreated(t *testing.T) { - // tests only works in rootless mode - if rootless.IsRootless() { - return - } - - var resources spec.LinuxResources - cgr, err := New("machine.slice", &resources) - if err != nil { - t.Error(err) - } - if err := cgr.Delete(); err != nil { - t.Error(err) - } - - cgr, err = NewSystemd("machine.slice") - if err != nil { - t.Error(err) - } - if err := cgr.Delete(); err != nil { - t.Error(err) - } -} |