Merge pull request #38554 from thaJeztah/check_for_errors

Add missing error-check in TestAPISwarmManagerRestore
This commit is contained in:
Brian Goff 2019-01-15 09:25:44 -08:00 committed by GitHub
commit 0dc531243d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -503,7 +503,8 @@ func (s *DockerSwarmSuite) TestAPISwarmManagerRestore(c *check.C) {
d3.RestartNode(c)
d3.GetService(c, id)
d3.Kill()
err := d3.Kill()
assert.NilError(c, err)
time.Sleep(1 * time.Second) // time to handle signal
d3.StartNode(c)
d3.GetService(c, id)