mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #114573 from pohly/e2e-ginkgo-timeout-fixes
e2e ginkgo timeout fixes, II
This commit is contained in:
commit
a864583905
@ -93,9 +93,9 @@ var _ = SIGDescribe("LimitRange", func() {
|
||||
_, informer, w, _ := watchtools.NewIndexerInformerWatcher(lw, &v1.LimitRange{})
|
||||
defer w.Stop()
|
||||
|
||||
ctx, cancelCtx := context.WithTimeout(ctx, wait.ForeverTestTimeout)
|
||||
defer cancelCtx()
|
||||
if !cache.WaitForCacheSync(ctx.Done(), informer.HasSynced) {
|
||||
timeoutCtx, cancel := context.WithTimeout(ctx, wait.ForeverTestTimeout)
|
||||
defer cancel()
|
||||
if !cache.WaitForCacheSync(timeoutCtx.Done(), informer.HasSynced) {
|
||||
framework.Failf("Timeout while waiting for LimitRange informer to sync")
|
||||
}
|
||||
|
||||
|
@ -623,7 +623,6 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
|
||||
*/
|
||||
framework.ConformanceIt("runs ReplicaSets to verify preemption running path", func(ctx context.Context) {
|
||||
podNamesSeen := []int32{0, 0, 0}
|
||||
stopCh := make(chan struct{})
|
||||
|
||||
// create a pod controller to list/watch pod events from the test framework namespace
|
||||
_, podController := cache.NewInformer(
|
||||
@ -652,8 +651,7 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
|
||||
},
|
||||
},
|
||||
)
|
||||
go podController.Run(stopCh)
|
||||
defer close(stopCh)
|
||||
go podController.Run(ctx.Done())
|
||||
|
||||
// prepare three ReplicaSet
|
||||
rsConfs := []pauseRSConfig{
|
||||
|
Loading…
Reference in New Issue
Block a user