Typo fixed and simple code.

Signed-off-by: Ri Xu <xuri@360.net>
Upstream-commit: 87e8a936e82ecfbef59b829d8bbfca3fb4aa3163
Component: engine
This commit is contained in:
Ri Xu
2017-10-18 10:26:58 +08:00
parent f9aa6f8b5d
commit d91c638398
6 changed files with 6 additions and 10 deletions
@@ -333,7 +333,7 @@ func (s *DockerSwarmSuite) AddDaemon(c *check.C, joinSwarm, manager bool) *daemo
args := []string{"--iptables=false", "--swarm-default-advertise-addr=lo"} // avoid networking conflicts
d.StartWithBusybox(c, args...)
if joinSwarm == true {
if joinSwarm {
if len(s.daemons) > 0 {
tokens := s.daemons[0].JoinTokens(c)
token := tokens.Worker
@@ -44,11 +44,7 @@ func testIpcCheckDevExists(mm string) (bool, error) {
}
}
if err := s.Err(); err != nil {
return false, err
}
return false, nil
return false, s.Err()
}
// testIpcNonePrivateShareable is a helper function to test "none",