Skip to content

Commit 37854d1

Browse files
committed
tests: add ginko panic recovery to retry policy e2e
Cleanup will be skipped and test will exit bypassing cleanup if a different context goroutine panics or asserts without deferring the ginkgo recover function. Related to openservicemesh#3119 Signed-off-by: jaellio <[email protected]>
1 parent 30885c9 commit 37854d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/e2e/e2e_retry_policy_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ var _ = OSMDescribe("Test Retry Policy",
125125

126126
By("A request that will be retried NumRetries times then fail")
127127
err = wait.Poll(time.Second*3, time.Second*30, func() (bool, error) {
128+
defer GinkgoRecover()
128129
result := Td.HTTPRequest(req)
129130

130131
stdout, stderr, err := Td.RunLocal(filepath.FromSlash("../../bin/osm"), "proxy", "get", "stats", clientPod.Name, "--namespace", client)

0 commit comments

Comments
 (0)