1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #18134 from hypriot/17802-fix-integration-tests-for-arm

Increase timeouts to fix integration-cli tests on ARM
This commit is contained in:
Michael Crosby 2015-11-20 15:05:26 -08:00
commit 048280ca42
5 changed files with 6 additions and 6 deletions

View file

@ -759,7 +759,7 @@ ADD test_file .`,
close(errChan)
}()
select {
case <-time.After(5 * time.Second):
case <-time.After(15 * time.Second):
c.Fatal("Build with adding to workdir timed out")
case err := <-errChan:
c.Assert(err, check.IsNil)
@ -1408,7 +1408,7 @@ COPY test_file .`,
close(errChan)
}()
select {
case <-time.After(5 * time.Second):
case <-time.After(15 * time.Second):
c.Fatal("Build with adding to workdir timed out")
case err := <-errChan:
c.Assert(err, check.IsNil)

View file

@ -53,7 +53,7 @@ func (s *DockerSuite) TestEventsUntag(c *check.C) {
dockerCmd(c, "rmi", "utest:tag1")
dockerCmd(c, "rmi", "utest:tag2")
eventsCmd := exec.Command(dockerBinary, "events", "--since=1")
out, exitCode, _, err := runCommandWithOutputForDuration(eventsCmd, time.Duration(time.Millisecond*500))
out, exitCode, _, err := runCommandWithOutputForDuration(eventsCmd, time.Duration(time.Millisecond*2500))
c.Assert(err, checker.IsNil)
c.Assert(exitCode, checker.Equals, 0, check.Commentf("Failed to get events"))
events := strings.Split(out, "\n")

View file

@ -35,7 +35,7 @@ func (s *DockerSuite) TestExecInteractiveStdinClose(c *check.C) {
c.Assert(err, checker.IsNil)
output := b.String()
c.Assert(strings.TrimSpace(output), checker.Equals, "hello")
case <-time.After(1 * time.Second):
case <-time.After(5 * time.Second):
c.Fatal("timed out running docker exec")
}
}

View file

@ -33,7 +33,7 @@ func (s *DockerSuite) TestStartAttachReturnsOnError(c *check.C) {
select {
case err := <-ch:
c.Assert(err, check.IsNil)
case <-time.After(time.Second):
case <-time.After(5 * time.Second):
c.Fatalf("Attach did not exit properly")
}
}

View file

@ -1517,7 +1517,7 @@ func setupRegistry(c *check.C) *testRegistryV2 {
c.Assert(err, check.IsNil)
// Wait for registry to be ready to serve requests.
for i := 0; i != 5; i++ {
for i := 0; i != 50; i++ {
if err = reg.Ping(); err == nil {
break
}