* Bugfix - persistence file could not be deleted under Windows because it was in use by the server

This commit is contained in:
Jacoby
2016-08-18 16:20:14 +02:00
parent 8b7458a6c4
commit 36daf153db
@@ -63,9 +63,9 @@ public class ServerRestartIntegrationTest {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
startServer();
String dbPath = IntegrationUtils.localMapDBPath(); String dbPath = IntegrationUtils.localMapDBPath();
IntegrationUtils.cleanPersistenceFile(dbPath); IntegrationUtils.cleanPersistenceFile(dbPath);
startServer();
m_subscriber = new MqttClient("tcp://localhost:1883", "Subscriber", s_dataStore); m_subscriber = new MqttClient("tcp://localhost:1883", "Subscriber", s_dataStore);
m_messageCollector = new MessageCollector(); m_messageCollector = new MessageCollector();