Skip to content

Commit 12a729c

Browse files
author
mpv1989
committed
Fix tests for cluster
1 parent ed0af02 commit 12a729c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/arangodb/ArangoDatabaseTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ public void deleteCollection() throws InterruptedException, ExecutionException {
199199

200200
@Test
201201
public void deleteSystemCollection() throws InterruptedException, ExecutionException {
202+
if (arangoDB.getRole().get() != ServerRole.SINGLE) {
203+
return;
204+
}
202205
final String name = "_system_test";
203206
db.createCollection(name, new CollectionCreateOptions().isSystem(true)).get();
204207
db.collection(name).drop(true).get();
@@ -211,6 +214,9 @@ public void deleteSystemCollection() throws InterruptedException, ExecutionExcep
211214

212215
@Test
213216
public void deleteSystemCollectionFail() throws InterruptedException, ExecutionException {
217+
if (arangoDB.getRole().get() != ServerRole.SINGLE) {
218+
return;
219+
}
214220
final String name = "_system_test";
215221
db.createCollection(name, new CollectionCreateOptions().isSystem(true)).get();
216222
try {

0 commit comments

Comments
 (0)