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] [Resolved] (ONAMI-91) Refactor TestConcurrentLazySingleton
test
[ https://issues.apache.org/jira/browse/ONAMI-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Zimmerman resolved ONAMI-91.
-----------------------------------
Resolution: Fixed
Fix Version/s: scopes-1.0.0
svn: r1451894
> 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
> Fix For: scopes-1.0.0
>
>
> - 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