diff --git a/spock-core/src/main/java/org/spockframework/runtime/BaseSpecRunner.java b/spock-core/src/main/java/org/spockframework/runtime/BaseSpecRunner.java index eeb9eaea85..bd70705607 100755 --- a/spock-core/src/main/java/org/spockframework/runtime/BaseSpecRunner.java +++ b/spock-core/src/main/java/org/spockframework/runtime/BaseSpecRunner.java @@ -402,13 +402,10 @@ public void doRunSetup(SpecInfo spec) { private void runFeatureMethod() { if (runStatus != OK) return; - if ((currentIteration == null)) { - invoke(currentInstance, currentFeature.getFeatureMethod(), currentIteration.getDataValues()); - } else { - MethodInfo featureIteration = new MethodInfo(currentFeature.getFeatureMethod()); - featureIteration.setIteration(currentIteration); - invoke(currentInstance, featureIteration, currentIteration.getDataValues()); - } + + MethodInfo featureIteration = new MethodInfo(currentFeature.getFeatureMethod()); + featureIteration.setIteration(currentIteration); + invoke(currentInstance, featureIteration, currentIteration.getDataValues()); } private void runCleanup() {