diff options
Diffstat (limited to 'client/go/internal/mock/http.go')
-rw-r--r-- | client/go/internal/mock/http.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/go/internal/mock/http.go b/client/go/internal/mock/http.go index 2fbaa85ecca..48835dd3338 100644 --- a/client/go/internal/mock/http.go +++ b/client/go/internal/mock/http.go @@ -56,6 +56,8 @@ func (c *HTTPClient) NextResponseError(err error) { c.nextErrors = append(c.nextErrors, err) } +func (c *HTTPClient) Consumed() bool { return len(c.nextResponses) == 0 } + func (c *HTTPClient) Do(request *http.Request, timeout time.Duration) (*http.Response, error) { c.LastRequest = request if len(c.nextErrors) > 0 { |