Bump sandbox start and stop timeouts.

PiperOrigin-RevId: 217433699
Change-Id: Icef08285728c23ee7dd650706aaf18da51c25dff
This commit is contained in:
Nicolas Lacasse
2018-10-16 20:34:10 -07:00
committed by Shentubot
parent 324ad3564b
commit cea51641d4
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -40,8 +40,6 @@ go_test(
],
embed = [":container"],
tags = [
# FIXME
"flaky",
"requires-kvm",
],
deps = [
+1 -1
View File
@@ -658,7 +658,7 @@ func (c *Container) stop() error {
}
func (c *Container) waitForStopped() error {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
b := backoff.WithContext(backoff.NewConstantBackOff(100*time.Millisecond), ctx)
op := func() error {
+1 -1
View File
@@ -86,7 +86,7 @@ func Create(id string, spec *specs.Spec, conf *boot.Config, bundleDir, consoleSo
}
// Wait for the control server to come up (or timeout).
if err := s.waitForCreated(10 * time.Second); err != nil {
if err := s.waitForCreated(20 * time.Second); err != nil {
return nil, err
}