File tree 2 files changed +4
-7
lines changed
groovy/src/main/java/cucumber/runtime/groovy
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,9 @@ public String getLocation(boolean detail) {
40
40
41
41
@ Override
42
42
public void execute (final Scenario scenario ) throws Throwable {
43
- Timeout .timeout (new Timeout .Callback <Object >() {
44
- @ Override
45
- public Object call () throws Throwable {
46
- backend .invoke (body , new Object []{scenario });
47
- return null ;
48
- }
43
+ Timeout .timeout (() -> {
44
+ backend .invoke (body , new Object []{scenario });
45
+ return null ;
49
46
}, timeoutMillis );
50
47
}
51
48
Original file line number Diff line number Diff line change 23
23
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
24
24
<minimum .maven.version>3.3</minimum .maven.version>
25
25
<outputDirectory >${project.build.directory}</outputDirectory >
26
- <cucumber .version>4.5.4 </cucumber .version>
26
+ <cucumber .version>4.6.0 </cucumber .version>
27
27
<gherkin .version>5.1.0</gherkin .version>
28
28
<groovy .version>2.4.12</groovy .version>
29
29
<junit .version>4.12</junit .version>
You can’t perform that action at this time.
0 commit comments