Documentation ¶
Index ¶
Constants ¶
const PollInterval = 200 * time.Millisecond
PollInterval is a constant specifying a 200 ms interval.
Variables ¶
This section is empty.
Functions ¶
func Invariant ¶
Invariant is a helper test function that will wait for a timeout period of time, verifying that a statement remains true for the entire duration. This function is helpful as timing doesn't always line up well when running integration tests with several running lnd nodes. This function gives callers a way to assert that some property is maintained over a particular time frame.
func InvariantNoError ¶
InvariantNoError is a wrapper around Invariant that waits out the duration specified by timeout. It fails if the predicate ever returns an error during that time.
func NoError ¶
NoError is a wrapper around Predicate that waits for the passed method f to execute without error, and returns the last error encountered if this doesn't happen within the timeout.
func Predicate ¶
Predicate is a helper test function that will wait for a timeout period of time until the passed predicate returns true. This function is helpful as timing doesn't always line up well when running integration tests with several running lnd nodes. This function gives callers a way to assert that some property is upheld within a particular time frame.
Types ¶
This section is empty.