Browse code

Change TestSwarmServiceTTY to only verify running containers since with swarmkit#b187b24 service deletions/scale-downs don't directly remove the container.

Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>

Anshul Pundir authored on 2017/12/06 07:30:16
Showing 1 changed files
... ...
@@ -849,7 +849,7 @@ func (s *DockerSwarmSuite) TestSwarmServiceTTY(c *check.C) {
849 849
 	waitAndAssert(c, defaultReconciliationTimeout, d.CheckActiveContainerCount, checker.Equals, 1)
850 850
 
851 851
 	// We need to get the container id.
852
-	out, err = d.Cmd("ps", "-a", "-q", "--no-trunc")
852
+	out, err = d.Cmd("ps", "-q", "--no-trunc")
853 853
 	c.Assert(err, checker.IsNil)
854 854
 	id := strings.TrimSpace(out)
855 855
 
... ...
@@ -872,7 +872,7 @@ func (s *DockerSwarmSuite) TestSwarmServiceTTY(c *check.C) {
872 872
 	waitAndAssert(c, defaultReconciliationTimeout, d.CheckActiveContainerCount, checker.Equals, 1)
873 873
 
874 874
 	// We need to get the container id.
875
-	out, err = d.Cmd("ps", "-a", "-q", "--no-trunc")
875
+	out, err = d.Cmd("ps", "-q", "--no-trunc")
876 876
 	c.Assert(err, checker.IsNil)
877 877
 	id = strings.TrimSpace(out)
878 878