parallel

package
v1.16.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancePort added in v1.15.0

func AdvancePort(p *uint32) uint32

AdvancePort advances the provided port by 1, and adds an offset to support running tests in parallel

func AdvancePortSafe added in v1.15.0

func AdvancePortSafe(p *uint32, errIfPortInUse func(proposedPort uint32) error) uint32

AdvancePortSafe advances the provided port by 1 until it returns a port that is safe to use The availability of the port is determined by the errIfPortInUse function

func AdvancePortSafeListen added in v1.15.0

func AdvancePortSafeListen(p *uint32) uint32

AdvancePortSafeListen returns a port that is safe to use in parallel tests It relies on pinging the port to see if it is in use

func GetParallelProcessCount

func GetParallelProcessCount() int

GetParallelProcessCount returns the parallel process number for the current ginkgo process

func GetPortOffset

func GetPortOffset() int

GetPortOffset returns the number of parallel Ginkgo processes * 1000 This is intended to be used by tests which need to produce unique ports so that they can be run in parallel without port conflict

Types

This section is empty.

Jump to

Keyboard shortcuts

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