make sure that in case of lucene IT test failure the test do not block the suite
@@ -111,11 +111,12 @@ public class OLuceneIndexCrashRestoreIT {
@Test
public void testEntriesAddition() throws Exception {
- createSchema(databasePool);
-
List<DataPropagationTask> futures = new ArrayList<>();
ODatabaseSession db;
OResultSet res;
+ try {
+ createSchema(databasePool);
+
for (int i = 0; i < 1; i++) {
//first round
System.out.println("Start data propagation ::" + i);
@@ -144,12 +145,14 @@ public class OLuceneIndexCrashRestoreIT {
System.out.println("END data propagation ::" + i);
}
+ } finally {
//crash the server
serverProcess.destroyForcibly();
serverProcess.waitFor();
//crash the server
+ }
System.out.println("Process was CRASHED");
