Author: clebert.suconic(a)jboss.com
Date: 2011-03-22 21:24:30 -0400 (Tue, 22 Mar 2011)
New Revision: 10354
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/RealNodeManagerTest.java
Log:
fixing a test that's eventually failing on hudson
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/RealNodeManagerTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/RealNodeManagerTest.java 2011-03-22
20:26:16 UTC (rev 10353)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/RealNodeManagerTest.java 2011-03-23
01:24:30 UTC (rev 10354)
@@ -33,7 +33,8 @@
protected void setUp() throws Exception
{
super.setUp();
- File file = new File(".", "server.lock");
+ clearData();
+ File file = new File(getTemporaryDir(), "server.lock");
if(file.exists())
{
file.delete();
@@ -42,7 +43,7 @@
public void testId() throws Exception
{
- NodeManager nodeManager = new FileLockNodeManager(".");
+ NodeManager nodeManager = new FileLockNodeManager(getTemporaryDir());
nodeManager.start();
UUID id1 = nodeManager.getUUID();
nodeManager.stop();
Show replies by date