Skip to content

Commit

Permalink
Closing store in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroecheler committed Feb 8, 2014
1 parent 6f21c31 commit a83765b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ public abstract class KCVSLogTest extends LogTest {

public abstract KeyColumnValueStoreManager openStorageManager() throws StorageException;

private KeyColumnValueStoreManager storeManager;

@Override
public LogManager openLogManager(String senderId) throws StorageException {
KeyColumnValueStoreManager storeManager = openStorageManager();
storeManager = openStorageManager();
return new KCVSLogManager(storeManager,senderId, Configuration.EMPTY);
}

Expand All @@ -24,4 +26,10 @@ public void setup() throws Exception {
super.setup();
}

@Override
public void shutdown() throws Exception {
super.shutdown();
storeManager.close();
}

}

0 comments on commit a83765b

Please sign in to comment.