File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/main/groovy/com/anotherchrisberry/spock/extensions/retry Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,18 @@ class RetryInterceptor implements IMethodInterceptor {
2929 if (attempts > retryMax) {
3030 throw t
3131 }
32- invocation. spec. cleanupMethods. each {
33- if (it. reflection) {
34- ReflectionUtil . invokeMethod(invocation. target, it. reflection)
32+ invocation. spec. specsBottomToTop. each { spec ->
33+ spec. cleanupMethods. each {
34+ if (it. reflection) {
35+ ReflectionUtil . invokeMethod(invocation. target, it. reflection)
36+ }
3537 }
3638 }
37- invocation. spec. setupMethods. each {
38- if (it. reflection) {
39- ReflectionUtil . invokeMethod(invocation. target, it. reflection)
39+ invocation. spec. specsTopToBottom. each { spec ->
40+ spec. setupMethods. each {
41+ if (it. reflection) {
42+ ReflectionUtil . invokeMethod(invocation. target, it. reflection)
43+ }
4044 }
4145 }
4246 }
You can’t perform that action at this time.
0 commit comments