mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
fix panic in e2e
This commit is contained in:
@@ -518,7 +518,9 @@ func generateServicesForConfigs(configs []testutils.RunObjectConfig) []*v1.Servi
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sleepUpTo(d time.Duration) {
|
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) {
|
func createAllResources(configs []testutils.RunObjectConfig, creatingTime time.Duration) {
|
||||||
|
Reference in New Issue
Block a user