LastRevSingleNodeRecoveryTest fails in setUp()
Drop collections before test
Check mk for null in tear down
@@ -91,6 +91,9 @@ public class LastRevSingleNodeRecoveryTest {
@Before
public void setUp() throws InterruptedException {
try {
+ if (fixture instanceof DocumentStoreFixture.MongoFixture) {
+ MongoUtils.dropCollections(MongoUtils.DB);
+ }
mk = createMK(0);
Assume.assumeNotNull(mk);
@@ -230,7 +233,9 @@ public class LastRevSingleNodeRecoveryTest {
public void tearDown() throws Exception {
Revision.resetClockToDefault();
ClusterNodeInfo.resetClockToDefault();
+ if (mk != null) {
mk.dispose();
+ }
if (mk2 != null) {
mk2.dispose();
}
