mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Add GinkgoRecover to a local storage go routine
All goroutines must have 'defer ginkgo.GinkgoRecover()' for ginkgo to report errors correctly.
This commit is contained in:
parent
6b24a5796c
commit
94ebfec526
@ -530,6 +530,7 @@ var _ = utils.SIGDescribe("PersistentVolumes-local ", func() {
|
|||||||
ginkgo.By(fmt.Sprintf("Creating %v pods periodically", numConcurrentPods))
|
ginkgo.By(fmt.Sprintf("Creating %v pods periodically", numConcurrentPods))
|
||||||
stop := make(chan struct{})
|
stop := make(chan struct{})
|
||||||
go wait.Until(func() {
|
go wait.Until(func() {
|
||||||
|
defer ginkgo.GinkgoRecover()
|
||||||
podsLock.Lock()
|
podsLock.Lock()
|
||||||
defer podsLock.Unlock()
|
defer podsLock.Unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user