From 94ebfec5267710166e6dfaf0896cc58090d663e7 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Wed, 11 Nov 2020 16:10:27 +0100 Subject: [PATCH] Add GinkgoRecover to a local storage go routine All goroutines must have 'defer ginkgo.GinkgoRecover()' for ginkgo to report errors correctly. --- test/e2e/storage/persistent_volumes-local.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/storage/persistent_volumes-local.go b/test/e2e/storage/persistent_volumes-local.go index 238807e4f1d..20688cdaa56 100644 --- a/test/e2e/storage/persistent_volumes-local.go +++ b/test/e2e/storage/persistent_volumes-local.go @@ -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()