-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread left running #69
Comments
After a little bit of debugging this is what I found out: In What should/could be done:
|
Thanks for the investigation and reporting. I've tried sleeping after "shutdownNow", please try if this alleviates the problem by using version <repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots />
</repository>
</repositories> |
In version 3.0.0-rc1 the problem still exists: Thread[awaitility-poll-scheduling,5,main] |
Thanks for trying it out |
This simple test case, leaves a thread running:
@test
public void checkThreadsLeft() throws Exception {
await("asdf").until(() -> true);
}
Stack trace of the thread that has been left:
Thread[Thread-0,5,main]
at java.lang.Thread.sleep(Native Method)
at org.awaitility.core.ConditionAwaiter$1.run(ConditionAwaiter.java:163)
at java.lang.Thread.run(Thread.java:745)
Is there a way to terminate this thread?
The text was updated successfully, but these errors were encountered: