Browse Source

Add missing error-check in TestAPISwarmManagerRestore

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 năm trước cách đây
mục cha
commit
2e326eba70
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      integration-cli/docker_api_swarm_test.go

+ 2 - 1
integration-cli/docker_api_swarm_test.go

@@ -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)