You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@onami.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2013/03/02 16:39:14 UTC
[jira] [Assigned] (ONAMI-91) Refactor TestConcurrentLazySingleton
test
[ https://issues.apache.org/jira/browse/ONAMI-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Zimmerman reassigned ONAMI-91:
-------------------------------------
Assignee: Jordan Zimmerman
> 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
> Assignee: Jordan Zimmerman
> 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