mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Bump sandbox start and stop timeouts.
PiperOrigin-RevId: 217433699 Change-Id: Icef08285728c23ee7dd650706aaf18da51c25dff
This commit is contained in:
committed by
Shentubot
parent
324ad3564b
commit
cea51641d4
@@ -40,8 +40,6 @@ go_test(
|
||||
],
|
||||
embed = [":container"],
|
||||
tags = [
|
||||
# FIXME
|
||||
"flaky",
|
||||
"requires-kvm",
|
||||
],
|
||||
deps = [
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user