Skip to content

Commit 73dd9ef

Browse files
author
mpv1989
committed
Fix tests
1 parent cd8ff95 commit 73dd9ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/arangodb/ArangoGraphTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ public void setup() {
9595
public void teardown() {
9696
for (final String collection : new String[] { EDGE_COL_1, EDGE_COL_2, VERTEX_COL_1, VERTEX_COL_2, VERTEX_COL_3,
9797
VERTEX_COL_4 }) {
98-
db.collection(collection).truncate();
98+
final ArangoCollection c = db.collection(collection);
99+
if (c.exists()) {
100+
c.truncate();
101+
}
99102
}
100103
}
101104

0 commit comments

Comments
 (0)