Issue #9 resolved

Option with tests to invoke (shutdown-agents) after tests have executed

Howard Lewis Ship
created an issue

Some of the tests in my build are invoking functions via agents.

This starts a thread pool; after the last test executes, the test process stalls (the thread pool has no active work, but it keeps the process for exitting).

It would be nice to have the option (or just do it automatically) to have the Clouresque runtime invoke (shutdown-agents) after all tests have executed. This allows the process to exit cleanly.

My workaround was to create a dummy test in a namespace ordered last (i.e., "zzz-killagents.clj") that shuts down the agents ... but I can't absolutely guarantee the order of execution of the tests.

Comments (2)

  1. Log in to comment