Skip to content

Commit

Permalink
UPSTREAM: 96467: Add GinkgoRecover to a local storage go routine
Browse files Browse the repository at this point in the history
All goroutines must have 'defer ginkgo.GinkgoRecover()' for ginkgo to
report errors correctly.
  • Loading branch information
jsafrane authored and soltysh committed Sep 8, 2021
1 parent 5d3843a commit 20854c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/storage/persistent_volumes-local.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ var _ = utils.SIGDescribe("PersistentVolumes-local ", func() {
ginkgo.By(fmt.Sprintf("Creating %v pods periodically", numConcurrentPods))
stop := make(chan struct{})
go wait.Until(func() {
defer ginkgo.GinkgoRecover()
podsLock.Lock()
defer podsLock.Unlock()

Expand Down

0 comments on commit 20854c0

Please sign in to comment.