Skip to content

Commit 3d44550

Browse files
committed
only execute min repl graph test > v3.5 & cluster
1 parent e9ee119 commit 3d44550

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ public void create() {
115115

116116
@Test
117117
public void createWithReplicationAndMinReplicationFactor() {
118+
if (!requireVersion(3, 5)) {
119+
return;
120+
}
121+
122+
// if we do not have a cluster => exit
123+
if (arangoDB.getRole() == ServerRole.SINGLE) {
124+
return;
125+
}
126+
118127
try {
119128
final Collection<EdgeDefinition> edgeDefinitions = new ArrayList<EdgeDefinition>();
120129
final GraphEntity graph = db.createGraph(GRAPH_NAME + "_1", edgeDefinitions, new GraphCreateOptions().isSmart(true).replicationFactor(2).minReplicationFactor(2));

0 commit comments

Comments
 (0)