Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSucceedsSoonDuration = 45 * time.Second
DefaultSucceedsSoonDuration is the maximum amount of time unittests will wait for a condition to become true. See SucceedsSoon().
Variables ¶
This section is empty.
Functions ¶
func SucceedsSoon ¶
SucceedsSoon fails the test (with t.Fatal) unless the supplied function runs without error within a preset maximum duration. The function is invoked immediately at first and then successively with an exponential backoff starting at 1ns and ending at around 1s.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.