libcontainer/integration: fix unit test

Fix a merge issue between 0aa0fae393 ("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:
Mauricio Vásquez
2020-10-23 07:41:20 -05:00
parent 07e35a7a40
commit ac5ec5e32f

View File

@@ -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)