mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-12 10:50:35 +08:00
libcontainer/integration: fix unit test
Fix a merge issue between0aa0fae393
("Kill all processes in cgroup even if init process Wait fails") &73d93eeb01
("libct/int: make newTemplateConfig argument a struct") that resulted in passing the wrong datatype to newTemplateConfig in TestPIDHostInitProcessWait. Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
This commit is contained in:
@@ -1661,7 +1661,7 @@ func TestPIDHostInitProcessWait(t *testing.T) {
|
||||
pidns := "/proc/1/ns/pid"
|
||||
|
||||
// Run a container with two long-running processes.
|
||||
config := newTemplateConfig(rootfs)
|
||||
config := newTemplateConfig(&tParam{rootfs: rootfs})
|
||||
config.Namespaces.Add(configs.NEWPID, pidns)
|
||||
container, err := newContainerWithName("test", config)
|
||||
ok(t, err)
|
||||
|
Reference in New Issue
Block a user