ManageIQ / more_core_extensions

MoreCoreExtensions are a set of core extensions beyond those provided by ActiveSupport.
MIT License
5 stars 23 forks source link

fix sporadic thread_safety test failure #116

Closed kbrock closed 8 months ago

kbrock commented 8 months ago

For this test, the spawned thread was ending after the main block was running

When the main block quit, it undefined the method on the class. The threaded class kept calling the method (now undefined) and threw an exception because the method was no longer defined.

solution is to wait for the thread to finish before exiting and un-defining the method

fixes #77