Skip to content

Commit 3a9da7b

Browse files
author
a-brandt
committed
fixed test
1 parent cd7ba91 commit 3a9da7b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/test/java/com/arangodb/ArangoDriverDocumentTest.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -427,16 +427,7 @@ public void test_getDocuments_handle() throws ArangoException {
427427
List<String> documents = driver.getDocuments(collectionName, true);
428428
assertEquals(3, documents.size());
429429

430-
String prefix;
431-
if (documents.get(0).startsWith("/_db/")) {
432-
// since ArangoDB 2.6
433-
prefix = "/_db/" + DATABASE_NAME + "/_api/document/";
434-
} else {
435-
prefix = "";
436-
}
437-
438-
List<String> list = Arrays.asList(prefix + doc1.getDocumentHandle(), prefix + doc2.getDocumentHandle(),
439-
prefix + doc3.getDocumentHandle());
430+
List<String> list = Arrays.asList(doc1.getDocumentHandle(), doc2.getDocumentHandle(), doc3.getDocumentHandle());
440431

441432
assertTrue(documents.containsAll(list));
442433
}

0 commit comments

Comments
 (0)