From 8247b7b50b6c127e08bcc6e16c108ceac7b0ff8d Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 17 Jul 2020 19:21:18 -0700 Subject: [PATCH] integration: increase timeouts Set the limit high enough to ensure failure in CI signals a bug Signed-off-by: Tonis Tiigi --- frontend/gateway/grpcclient/client.go | 2 +- util/testutil/integration/sandbox.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/gateway/grpcclient/client.go b/frontend/gateway/grpcclient/client.go index 1ae9ef09..5fe33a19 100644 --- a/frontend/gateway/grpcclient/client.go +++ b/frontend/gateway/grpcclient/client.go @@ -32,7 +32,7 @@ type GrpcClient interface { } func New(ctx context.Context, opts map[string]string, session, product string, c pb.LLBBridgeClient, w []client.WorkerInfo) (GrpcClient, error) { - ctx, cancel := context.WithTimeout(ctx, 10*time.Second) + ctx, cancel := context.WithTimeout(ctx, 15*time.Second) defer cancel() resp, err := c.Ping(ctx, &pb.PingRequest{}) if err != nil { diff --git a/util/testutil/integration/sandbox.go b/util/testutil/integration/sandbox.go index c926ed94..3476a2bb 100644 --- a/util/testutil/integration/sandbox.go +++ b/util/testutil/integration/sandbox.go @@ -181,7 +181,7 @@ func runBuildkitd(conf *BackendConfig, args []string, logs map[string]*bytes.Buf deferF.append(stop) } - if err := waitUnix(address, 10*time.Second); err != nil { + if err := waitUnix(address, 15*time.Second); err != nil { return "", nil, err }