File tree 1 file changed +8
-4
lines changed
src/test/java/com/arangodb
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ public void conflictOnInsertDocumentWithNotYetCommittedTx() {
79
79
80
80
fail ();
81
81
} 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
+ }
84
86
}
85
87
86
88
db .abortStreamTransaction (tx1 .getId ());
@@ -115,8 +117,10 @@ public void conflictOnInsertDocumentWithAlreadyCommittedTx() {
115
117
116
118
fail ();
117
119
} 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
+ }
120
124
}
121
125
122
126
db .abortStreamTransaction (tx2 .getId ());
You can’t perform that action at this time.
0 commit comments