[infinispan-commits] Infinispan SVN: r2044 - branches/4.1.x/server/hotrod/src/test/scala/org/infinispan/server/hotrod.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Fri Jul 16 02:53:14 EDT 2010
Author: galder.zamarreno at jboss.com
Date: 2010-07-16 02:53:14 -0400 (Fri, 16 Jul 2010)
New Revision: 2044
Modified:
branches/4.1.x/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodMultiNodeTest.scala
Log:
Put cache manager shutdown in finally to gurarantee that it gets executed.
Modified: branches/4.1.x/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodMultiNodeTest.scala
===================================================================
--- branches/4.1.x/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodMultiNodeTest.scala 2010-07-15 23:02:23 UTC (rev 2043)
+++ branches/4.1.x/server/hotrod/src/test/scala/org/infinispan/server/hotrod/HotRodMultiNodeTest.scala 2010-07-16 06:53:14 UTC (rev 2044)
@@ -36,10 +36,13 @@
@AfterClass(alwaysRun = true)
override def destroy {
- log.debug("Test finished, close Hot Rod server", null)
- hotRodClients.foreach(_.stop)
- hotRodServers.foreach(_.stop)
- super.destroy // Stop the caches last so that at stoppage time topology cache can be updated properly
+ try {
+ log.debug("Test finished, close Hot Rod server", null)
+ hotRodClients.foreach(_.stop)
+ hotRodServers.foreach(_.stop)
+ } finally {
+ super.destroy // Stop the caches last so that at stoppage time topology cache can be updated properly
+ }
}
@AfterMethod(alwaysRun=true)
More information about the infinispan-commits
mailing list