e2e: set default timeout on Client

This commit is contained in:
Jeff Grafton 2015-09-21 12:34:51 -07:00
parent 915bc04488
commit 11f3785023

View File

@ -834,6 +834,9 @@ func loadClient() (*client.Client, error) {
if err != nil {
return nil, fmt.Errorf("error creating client: %v", err.Error())
}
if c.Timeout == 0 {
c.Timeout = singleCallTimeout
}
return c, nil
}