increase test context timeouts

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
v0.8
Tonis Tiigi 2020-06-06 15:48:55 -07:00
parent 598a0bdc9a
commit cc88b8f4f4
2 changed files with 2 additions and 2 deletions

View File

@ -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, 5*time.Second)
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
resp, err := c.Ping(ctx, &pb.PingRequest{})
if err != nil {

View File

@ -176,7 +176,7 @@ func runBuildkitd(conf *BackendConfig, args []string, logs map[string]*bytes.Buf
deferF.append(stop)
}
if err := waitUnix(address, 5*time.Second); err != nil {
if err := waitUnix(address, 10*time.Second); err != nil {
return "", nil, err
}