fix panic in e2e
This commit is contained in:
@@ -518,8 +518,10 @@ func generateServicesForConfigs(configs []testutils.RunObjectConfig) []*v1.Servi
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sleepUpTo(d time.Duration) {
|
func sleepUpTo(d time.Duration) {
|
||||||
|
if d.Nanoseconds() > 0 {
|
||||||
time.Sleep(time.Duration(rand.Int63n(d.Nanoseconds())))
|
time.Sleep(time.Duration(rand.Int63n(d.Nanoseconds())))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func createAllResources(configs []testutils.RunObjectConfig, creatingTime time.Duration) {
|
func createAllResources(configs []testutils.RunObjectConfig, creatingTime time.Duration) {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user