Skip to content

Commit

Permalink
test: added check database after test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Apr 5, 2024
1 parent 8120d97 commit 18fffc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engine/src/test/java/com/arcadedb/engine/DeleteAllTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.arcadedb.database.Database;
import com.arcadedb.database.DatabaseFactory;
import com.arcadedb.graph.MutableVertex;
import com.arcadedb.query.sql.executor.ResultSet;
import com.arcadedb.utility.FileUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand All @@ -14,7 +15,7 @@ public class DeleteAllTest {
private final static int TOT_RECORDS = 100_000;
private final static String VERTEX_TYPE = "Product";
private final static String EDGE_TYPE = "LinkedTo";
private static final int CYCLES = 10;
private static final int CYCLES = 2;

@Test
public void testCreateAndDeleteGraph() {
Expand Down Expand Up @@ -56,8 +57,11 @@ public void testCreateAndDeleteGraph() {
Assertions.assertEquals(0, db.countType(EDGE_TYPE, true));
});
}

final ResultSet result = db.command("sql", "check database");
System.out.println(result.nextIfAvailable().toJSON());
} finally {
System.out.println(databaseFactory.getDatabasePath());

if (databaseFactory.exists())
databaseFactory.open().drop();
}
Expand Down

0 comments on commit 18fffc3

Please sign in to comment.