add TestContainerApiPause case

Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
This commit is contained in:
Yuan Sun
2015-04-10 09:14:01 +08:00
parent 404f81011b
commit 8636a21991
2 changed files with 48 additions and 3 deletions
+3
View File
@@ -389,6 +389,9 @@ func getPausedContainers() (string, error) {
func getSliceOfPausedContainers() ([]string, error) {
out, err := getPausedContainers()
if err == nil {
if len(out) == 0 {
return nil, err
}
slice := strings.Split(strings.TrimSpace(out), "\n")
return slice, err
}