commit
14af6755f0
|
@ -53,7 +53,7 @@ func expectBlkioStatsEquals(t *testing.T, expected, actual cgroups.BlkioStats) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := blkioStatEntryEquals(expected.IoMergedRecursive, actual.IoMergedRecursive); err != nil {
|
if err := blkioStatEntryEquals(expected.IoMergedRecursive, actual.IoMergedRecursive); err != nil {
|
||||||
log.Printf("blkio IoMergedRecursive do not match - %s vs %s\n", expected.IoMergedRecursive, actual.IoMergedRecursive)
|
log.Printf("blkio IoMergedRecursive do not match - %v vs %v\n", expected.IoMergedRecursive, actual.IoMergedRecursive)
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ func newTemplateConfig(rootfs string) *libcontainer.Config {
|
||||||
"KILL",
|
"KILL",
|
||||||
"AUDIT_WRITE",
|
"AUDIT_WRITE",
|
||||||
},
|
},
|
||||||
Namespaces: libcontainer.Namespaces{
|
Namespaces: libcontainer.Namespaces([]libcontainer.Namespace{
|
||||||
{Type: libcontainer.NEWNS},
|
{Type: libcontainer.NEWNS},
|
||||||
{Type: libcontainer.NEWUTS},
|
{Type: libcontainer.NEWUTS},
|
||||||
{Type: libcontainer.NEWIPC},
|
{Type: libcontainer.NEWIPC},
|
||||||
{Type: libcontainer.NEWPID},
|
{Type: libcontainer.NEWPID},
|
||||||
{Type: libcontainer.NEWNET},
|
{Type: libcontainer.NEWNET},
|
||||||
},
|
}),
|
||||||
Cgroups: &cgroups.Cgroup{
|
Cgroups: &cgroups.Cgroup{
|
||||||
Parent: "integration",
|
Parent: "integration",
|
||||||
AllowAllDevices: false,
|
AllowAllDevices: false,
|
||||||
|
|
Loading…
Reference in New Issue