Skip to content

Commit 59775a9

Browse files
committed
fixed tests for ArangoDB 3.7
1 parent a2246de commit 59775a9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/test/java/com/arangodb/StreamTransactionConflictsTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ public void conflictOnInsertDocumentWithNotYetCommittedTx() {
7979

8080
fail();
8181
} catch (ArangoDBException e) {
82-
assertThat(e.getResponseCode(), is(409));
83-
assertThat(e.getErrorNum(), is(1200));
82+
if (isAtLeastVersion(3, 8)) {
83+
assertThat(e.getResponseCode(), is(409));
84+
assertThat(e.getErrorNum(), is(1200));
85+
}
8486
}
8587

8688
db.abortStreamTransaction(tx1.getId());
@@ -115,8 +117,10 @@ public void conflictOnInsertDocumentWithAlreadyCommittedTx() {
115117

116118
fail();
117119
} catch (ArangoDBException e) {
118-
assertThat(e.getResponseCode(), is(409));
119-
assertThat(e.getErrorNum(), is(1200));
120+
if (isAtLeastVersion(3, 8)) {
121+
assertThat(e.getResponseCode(), is(409));
122+
assertThat(e.getErrorNum(), is(1200));
123+
}
120124
}
121125

122126
db.abortStreamTransaction(tx2.getId());

0 commit comments

Comments
 (0)