Mikhail Mazursky created ONAMI-91:
-------------------------------------
Summary: Refactor TestConcurrentLazySingleton test
Key: ONAMI-91
URL: https://issues.apache.org/jira/browse/ONAMI-91
Project: Apache Onami
Issue Type: Improvement
Components: scopes
Affects Versions: scopes-1.0.0
Reporter: Mikhail Mazursky
Priority: Minor
- test with Executors.newSingleThreadExecutor() should shutdown the executor in
a finally block to avoid preventing JVM termination by active thread;
- In the same test you can just wait on Future returned by executor;
- I think it's better to always set timeout for waiting in such cases in tests
- like 1 minute. Just to avoid locking JVM in case of some bug in test.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira