Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequireStatusCodeOption ¶
type RequireStatusCodeOption func(*requireStatusCodeConfig)
func WithRequireStatusCodeHTTPClient ¶
func WithRequireStatusCodeHTTPClient(httpClient *http.Client) RequireStatusCodeOption
func WithRequireStatusCodePollInterval ¶
func WithRequireStatusCodePollInterval(pollInterval time.Duration) RequireStatusCodeOption
func WithRequireStatusCodeWaitFor ¶
func WithRequireStatusCodeWaitFor(waitFor time.Duration) RequireStatusCodeOption
type ResponseBody ¶
type ResponseBody = string
func RequireEventuallyStatusCode ¶
func RequireEventuallyStatusCode( t *testing.T, expectedStatusCode int, r *http.Request, opts ...RequireStatusCodeOption, ) ResponseBody
RequireEventuallyStatusCode is a helper function that retries a request until the expected status code is returned.
Click to show internal directories.
Click to hide internal directories.