You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cucumber-JVM, ver.1.1.1 (but, I see the code caused the issue still in your repo)
How to reproduce:
Create step with timeout & throw exception in it. e.g. @then(value="^I just fail$", timeout=5000)
public void I_just_fail() throws Throwable {
Assert.fail("Just fail")
}
Create several scenarios with one of them 'just fail'
Get in test next (in fact, after 5sec) to failed test TimeoutException:
java.util.concurrent.TimeoutException: Timed out after 5000ms.
at cucumber.runtime.Timeout.timeout(Timeout.java:29)
The exception caused by scheduled task in static method cucumber.runtime.Timeout::timeout(Callback, int) which is not canceled in case if step throws exception (it interrupts current thread after timeout).
This patch solves the issue:
cucumber-JVM, ver.1.1.1 (but, I see the code caused the issue still in your repo)
How to reproduce:
@then(value="^I just fail$", timeout=5000)
public void I_just_fail() throws Throwable {
Assert.fail("Just fail")
}
java.util.concurrent.TimeoutException: Timed out after 5000ms.
at cucumber.runtime.Timeout.timeout(Timeout.java:29)
The exception caused by scheduled task in static method cucumber.runtime.Timeout::timeout(Callback, int) which is not canceled in case if step throws exception (it interrupts current thread after timeout).
This patch solves the issue:
The text was updated successfully, but these errors were encountered: