Commit bc2bb37f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50742 from WIZARD-CXY/fixpanicine2e

Automatic merge from submit-queue (batch tested with PRs 50711, 50742, 50204) fix panic in e2e **What this PR does / why we need it**: fix #50660 **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: no **Release note**: ```release-note none ```
parents 4fa4471e 4e069bd9
......@@ -518,7 +518,9 @@ func generateServicesForConfigs(configs []testutils.RunObjectConfig) []*v1.Servi
}
func sleepUpTo(d time.Duration) {
time.Sleep(time.Duration(rand.Int63n(d.Nanoseconds())))
if d.Nanoseconds() > 0 {
time.Sleep(time.Duration(rand.Int63n(d.Nanoseconds())))
}
}
func createAllResources(configs []testutils.RunObjectConfig, creatingTime time.Duration) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment