Skip to content

Commit 631c3de

Browse files
author
mpv1989
committed
Fix tests
1 parent 6b9fafa commit 631c3de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ public void smartGraph() throws InterruptedException, ExecutionException {
228228
} catch (final Exception e) {
229229
}
230230
}
231-
try {
232-
db.graph(GRAPH_NAME).drop().get();
233-
} catch (final Exception e) {
234-
}
235231
final Collection<EdgeDefinition> edgeDefinitions = new ArrayList<>();
236232
edgeDefinitions.add(new EdgeDefinition().collection(EDGE_COL_1).from(VERTEX_COL_1).to(VERTEX_COL_2));
237233
edgeDefinitions
238234
.add(new EdgeDefinition().collection(EDGE_COL_2).from(VERTEX_COL_2).to(VERTEX_COL_1, VERTEX_COL_3));
239-
final GraphEntity graph = db.createGraph(GRAPH_NAME, edgeDefinitions,
235+
final GraphEntity graph = db.createGraph(GRAPH_NAME + "_smart", edgeDefinitions,
240236
new GraphCreateOptions().isSmart(true).smartGraphAttribute("test").numberOfShards(2)).get();
241237
assertThat(graph, is(notNullValue()));
242238
assertThat(graph.getIsSmart(), is(true));
243239
assertThat(graph.getSmartGraphAttribute(), is("test"));
244240
assertThat(graph.getNumberOfShards(), is(2));
241+
try {
242+
db.graph(GRAPH_NAME + "_smart").drop().get();
243+
} catch (final Exception e) {
244+
}
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)