Skip to content

Commit 2939411

Browse files
author
michele
committed
commented assertion on responseCode 500
1 parent 12fe1af commit 2939411

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,10 @@ public void createCollectionWithSmartJoinAttributeWrong() {
340340
db.createCollection(COLLECTION_NAME, new CollectionCreateOptions().smartJoinAttribute("test123"));
341341
} catch (ArangoDBException e) {
342342
assertThat(e.getErrorNum(), is(4006));
343-
assertThat(e.getResponseCode(), is(500));
343+
// TODO:
344+
// at the moment older server versions reply with response code 500, which is a misbehavior
345+
// when the fix has been backported to all the supported db versions uncomment the following:
346+
// assertThat(e.getResponseCode(), is(400));
344347
} finally {
345348
try {
346349
db.collection(COLLECTION_NAME).drop();

0 commit comments

Comments
 (0)