Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eventually ¶
func Eventually(t *testing.T, timeout time.Duration, testFunc func(_ require.TestingT), options ...EventuallyOption)
Eventually retries a test until it eventually succeeds. If the timeout is reached, the test fails with the same failure as its last execution.
func FreeTCPPort ¶
FreeTCPPort asks the kernel for a free open port that is ready to use.
func FreeUDPPort ¶
FreeUDPPort asks the kernel for a free open port that is ready to use.
Types ¶
type EventuallyOption ¶
type EventuallyOption func(cfg *eventuallyConfig)
func Interval ¶
func Interval(t time.Duration) EventuallyOption
Interval to wait between successive executions of the inner test in the same Eventually invocation, if the inner test has failed.
Click to show internal directories.
Click to hide internal directories.