Skip to content

Commit 2049e0b

Browse files
author
mpv1989
committed
Fix test for cluster
1 parent 06fd8c9 commit 2049e0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/com/arangodb/ArangoCollectionTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import com.arangodb.entity.IndexEntity;
5858
import com.arangodb.entity.IndexType;
5959
import com.arangodb.entity.MultiDocumentEntity;
60+
import com.arangodb.entity.ServerRole;
6061
import com.arangodb.model.CollectionCreateOptions;
6162
import com.arangodb.model.CollectionPropertiesOptions;
6263
import com.arangodb.model.DocumentCreateOptions;
@@ -1795,6 +1796,9 @@ public void changeProperties() throws InterruptedException, ExecutionException {
17951796

17961797
@Test
17971798
public void rename() throws InterruptedException, ExecutionException {
1799+
if (arangoDB.getRole().get() != ServerRole.SINGLE) {
1800+
return;
1801+
}
17981802
try {
17991803
final CompletableFuture<CollectionEntity> f = db.collection(COLLECTION_NAME).rename(COLLECTION_NAME + "1");
18001804
assertThat(f, is(notNullValue()));

0 commit comments

Comments
 (0)