Stop using the deprecated method CurrentGinkgoTestDescription
Besides, the using of method might lead to a `concurrent map writes` issue per the discussion here: https://github.com/onsi/ginkgo/issues/970 Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
@@ -425,7 +425,7 @@ current-context: local-context
|
||||
})
|
||||
|
||||
ginkgo.AfterEach(func() {
|
||||
if ginkgo.CurrentGinkgoTestDescription().Failed && framework.TestContext.DumpLogsOnFailure {
|
||||
if ginkgo.CurrentSpecReport().Failed() && framework.TestContext.DumpLogsOnFailure {
|
||||
ginkgo.By("Get node problem detector log")
|
||||
log, err := e2epod.GetPodLogs(c, ns, name, name)
|
||||
gomega.Expect(err).ShouldNot(gomega.HaveOccurred())
|
||||
|
Reference in New Issue
Block a user