summaryrefslogtreecommitdiff
path: root/libpod/test_common.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/test_common.go')
-rw-r--r--libpod/test_common.go25
1 files changed, 18 insertions, 7 deletions
diff --git a/libpod/test_common.go b/libpod/test_common.go
index 8b8248188..75d9516b1 100644
--- a/libpod/test_common.go
+++ b/libpod/test_common.go
@@ -49,13 +49,24 @@ func getTestContainer(id, name, locksDir string) (*Container, error) {
},
},
state: &containerState{
- State: ContainerStateRunning,
- ConfigPath: "/does/not/exist/specs/" + id,
- RunDir: "/does/not/exist/tmp/",
- Mounted: true,
- Mountpoint: "/does/not/exist/tmp/" + id,
- PID: 1234,
- ExecSessions: map[string]int{"abcd": 101, "ef01": 202},
+ State: ContainerStateRunning,
+ ConfigPath: "/does/not/exist/specs/" + id,
+ RunDir: "/does/not/exist/tmp/",
+ Mounted: true,
+ Mountpoint: "/does/not/exist/tmp/" + id,
+ PID: 1234,
+ ExecSessions: map[string]*ExecSession{
+ "abcd": {
+ ID: "1",
+ Command: []string{"2", "3"},
+ PID: 9876,
+ },
+ "ef01": {
+ ID: "5",
+ Command: []string{"hello", "world"},
+ PID: 46765,
+ },
+ },
},
valid: true,
}