mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-08 08:50:15 +08:00
libct/*: switch from configs to cgroups
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/opencontainers/runc/libcontainer/cgroups"
|
||||
"github.com/opencontainers/runc/libcontainer/configs"
|
||||
"github.com/opencontainers/runc/libcontainer/utils"
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
@@ -43,8 +44,8 @@ func TestFactoryLoadContainer(t *testing.T) {
|
||||
expectedConfig = &configs.Config{
|
||||
Rootfs: "/mycontainer/root",
|
||||
Hooks: expectedHooks,
|
||||
Cgroups: &configs.Cgroup{
|
||||
Resources: &configs.Resources{},
|
||||
Cgroups: &cgroups.Cgroup{
|
||||
Resources: &cgroups.Resources{},
|
||||
},
|
||||
}
|
||||
expectedState = &State{
|
||||
|
Reference in New Issue
Block a user