I'm seeing some issues with components leaking aft...
# tornadofx
c
I'm seeing some issues with components leaking after tests. The app primary view instance survives and still receives dock/undock calls. I also noticed if I pause the test thread, (not the FX thread), and press alt+meta+j, I get exactly the number of layout debuggers on screen as test methods have started in the current process. I have an
@AfterEach
which does
FxToolkit.cleanupStages()
and
FxToolkit.cleanupApplication(app)
. The app instance is also nulled out and recreated between tests. Am I missing something or is this a bug?
I filed a bug about this, and opened a PR with a sample app and `@Ignore`ed unit test which verifies the issue. https://github.com/edvin/tornadofx/issues/973