MCPcopy Create free account
hub / github.com/akash-network/node / SleepForThreadStart

Function SleepForThreadStart

pubsub/util.go:21–23  ·  view source on GitHub ↗

SleepForThreadStart pass go routine for the duration of delay thread start

(t *testing.T)

Source from the content-addressed store, hash-verified

19
20// SleepForThreadStart pass go routine for the duration of delay thread start
21func SleepForThreadStart(t *testing.T) {
22 time.Sleep(delayThreadStart(t))
23}
24
25func delayThreadStart(t *testing.T) time.Duration {
26 if val := os.Getenv("TEST_DELAY_THREAD_START"); val != "" {

Callers 1

TestCloneFunction · 0.92

Calls 1

delayThreadStartFunction · 0.85

Tested by 1

TestCloneFunction · 0.74