Selaa lähdekoodia

Merge pull request #14706 from duglin/FixInspectTest

Fix InspectExecID test
Jessie Frazelle 10 vuotta sitten
vanhempi
commit
465192cb28
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      integration-cli/docker_cli_exec_test.go

+ 1 - 1
integration-cli/docker_cli_exec_test.go

@@ -449,7 +449,7 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) {
 		if out != "[]" && out != "<no value>" {
 		if out != "[]" && out != "<no value>" {
 			break
 			break
 		}
 		}
-		if i == tries {
+		if i+1 == tries {
 			c.Fatalf("ExecIDs should not be empty, got: %s", out)
 			c.Fatalf("ExecIDs should not be empty, got: %s", out)
 		}
 		}
 		time.Sleep(1 * time.Second)
 		time.Sleep(1 * time.Second)