test

package
v0.0.0-...-42bd771 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

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

func FreeTCPPort() (int, error)

FreeTCPPort asks the kernel for a free open port that is ready to use.

func FreeUDPPort

func FreeUDPPort() (int, error)

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.

Jump to

Keyboard shortcuts

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