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

Function delayThreadStart

pubsub/util.go:25–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func delayThreadStart(t *testing.T) time.Duration {
26 if val := os.Getenv("TEST_DELAY_THREAD_START"); val != "" {
27 d, err := time.ParseDuration(val)
28 require.NoError(t, err)
29
30 return d
31 }
32
33 return defaultDelayThreadStart
34}

Callers 2

AfterThreadStartFunction · 0.85
SleepForThreadStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected