Merge pull request #17518 from WeiZhang555/integration-test-bug
bug fix for test cases Upstream-commit: 05534b6f8007e1f614cccdf9467e07a8cc38ae3d Component: engine
This commit is contained in:
@ -232,7 +232,8 @@ func isNwPresent(c *check.C, name string) bool {
|
||||
out, _ := dockerCmd(c, "network", "ls")
|
||||
lines := strings.Split(out, "\n")
|
||||
for i := 1; i < len(lines)-1; i++ {
|
||||
if strings.Contains(lines[i], name) {
|
||||
netFields := strings.Fields(lines[i])
|
||||
if netFields[1] == name {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user