Make poll period and timeout configurable.

Make poll period short for integration testing.
This commit is contained in:
Brendan Burns
2014-07-07 09:36:55 -07:00
parent 9d001564bf
commit e3838e1153
3 changed files with 14 additions and 4 deletions

View File

@@ -46,9 +46,9 @@ func (c *Client) Verb(verb string) *Request {
verb: verb,
c: c,
path: "/api/v1beta1",
sync: false,
timeout: 20 * time.Second,
pollPeriod: 20 * time.Second,
sync: c.Sync,
timeout: c.Timeout,
pollPeriod: c.PollPeriod,
}
}