eventually

package
v0.0.0-...-143a0bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t require.TestingT, f func(t require.TestingT), timeout time.Duration, interval time.Duration) bool

Assert repeatedly calls a sub-test given by f until it succeeds. The frequency of calls is determined by interval. Failures in the sub-test do not let the surrounding test fail, unless the duration given by timeout passed. In this case, a final attempt is made that will also make the surrounding test fail so that the output of the final attempt is shown in the overall test output.

func Require

func Require(t require.TestingT, f func(t require.TestingT), timeout time.Duration, interval time.Duration)

Require performs the same test as Assert but calls t.FailNow() on failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL