File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments