diff --git a/tests/cmd/sd-helper/helper.go b/tests/cmd/sd-helper/helper.go index 49b77d004fb..be7de3e5802 100644 --- a/tests/cmd/sd-helper/helper.go +++ b/tests/cmd/sd-helper/helper.go @@ -9,7 +9,6 @@ import ( "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/libcontainer/cgroups/systemd" - "github.com/opencontainers/runc/libcontainer/configs" ) func usage() { @@ -57,7 +56,7 @@ func main() { } } -func newManager(config *configs.Cgroup) (cgroups.Manager, error) { +func newManager(config *cgroups.Cgroup) (cgroups.Manager, error) { if cgroups.IsCgroup2UnifiedMode() { return systemd.NewUnifiedManager(config, "") } @@ -65,10 +64,10 @@ func newManager(config *configs.Cgroup) (cgroups.Manager, error) { } func unitCommand(cmd, name, parent string) error { - podConfig := &configs.Cgroup{ + podConfig := &cgroups.Cgroup{ Name: name, Parent: parent, - Resources: &configs.Resources{}, + Resources: &cgroups.Resources{}, } pm, err := newManager(podConfig) if err != nil {