mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17518 from WeiZhang555/integration-test-bug
bug fix for test cases
This commit is contained in:
commit
05534b6f80
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ func isNwPresent(c *check.C, name string) bool {
|
||||||
out, _ := dockerCmd(c, "network", "ls")
|
out, _ := dockerCmd(c, "network", "ls")
|
||||||
lines := strings.Split(out, "\n")
|
lines := strings.Split(out, "\n")
|
||||||
for i := 1; i < len(lines)-1; i++ {
|
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
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue