-
Notifications
You must be signed in to change notification settings - Fork 168
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
(bug) Cleanup hangs when FX Application Thread got killed #287
Comments
Task-Url: http://github.com/TestFX/TestFX/issues/issue/287 Added method to detect whether FX Application Thread is running. Clean up code is only pushed on the FX-Thread if it is running. fixes TestFX#287 fixes TestFX#247
In general the FX Thread is killed by using I think the easiest way it to retrieve the FX Thread from |
Oh, you already implemented it. 👍 |
Yes. I do cancel the future, so feedback is passed this way. I do have the problem, with headless tests. If the Platform has an exception during start up:
It hangs up during cleanup, as JUnit tears down after the Exception. Using frambuffer on my build server it also hangs (not on my machine with the same docker image?!). |
thanks ortner this helped me |
Oh, thanks for the feedback. Always good to hear, that this fix helps others too. |
Issue
The Cleanup is called in the
after
method of JUnit tests. If the FX Application Thread is beeing killed during the test, the call to the clean up methodcleanupApplication()
inFXToolkit
waiting for the cleanup to be performed on the FX Application Thread.Solution
Detect, if the Application thread is running, before doing the cleanup.
The text was updated successfully, but these errors were encountered: