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