Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea4f72d

Browse files
committed
test fixes
1 parent 7e6ba2e commit ea4f72d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎driver/src/test/java/com/arangodb/ArangoCollectionAsyncTest.java‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -280,19 +280,19 @@ void insertDocumentOverwriteModeUpdateMergeObjectsFalse(ArangoCollectionAsync co
280280
@ParameterizedTest(name = "{index}")
281281
@MethodSource("asyncCols")
282282
void insertDocumentOverwriteModeUpdateKeepNullTrue(ArangoCollectionAsync collection) throws ExecutionException, InterruptedException {
283-
assumeTrue(isAtLeastVersion(3, 7));
283+
assumeTrue(isAtLeastVersion(3, 7));
284284

285-
final BaseDocument doc = new BaseDocument(UUID.randomUUID().toString());
286-
doc.addAttribute("foo", "bar");
287-
collection.insertDocument(doc).get();
285+
final BaseDocument doc = new BaseDocument(UUID.randomUUID().toString());
286+
doc.addAttribute("foo", "bar");
287+
collection.insertDocument(doc).get();
288288

289-
doc.updateAttribute("foo", null);
290-
final BaseDocument updated = collection.insertDocument(doc, new DocumentCreateOptions()
291-
.overwriteMode(OverwriteMode.update)
292-
.keepNull(true)
293-
.returnNew(true)).get().getNew();
289+
doc.updateAttribute("foo", null);
290+
final BaseDocument updated = collection.insertDocument(doc, new DocumentCreateOptions()
291+
.overwriteMode(OverwriteMode.update)
292+
.keepNull(true)
293+
.returnNew(true)).get().getNew();
294294

295-
assertThat(updated.getProperties()).containsEntry("foo", null);
295+
assertThat(updated.getProperties()).containsEntry("foo", null);
296296
}
297297

298298
@ParameterizedTest(name = "{index}")
@@ -1593,7 +1593,7 @@ void createZKDIndex(ArangoCollectionAsync collection) throws ExecutionException,
15931593
@MethodSource("asyncCols")
15941594
void createZKDIndexWithOptions(ArangoCollectionAsync collection) throws ExecutionException, InterruptedException {
15951595
assumeTrue(isAtLeastVersion(3, 9));
1596-
collection.truncate();
1596+
collection.truncate().get();
15971597

15981598
String name = "ZKDIndex-" + rnd();
15991599
final ZKDIndexOptions options =
@@ -1614,7 +1614,7 @@ void createZKDIndexWithOptions(ArangoCollectionAsync collection) throws Executio
16141614
assertThat(indexResult.getType()).isEqualTo(IndexType.zkd);
16151615
assertThat(indexResult.getUnique()).isFalse();
16161616
assertThat(indexResult.getName()).isEqualTo(name);
1617-
collection.deleteIndex(indexResult.getId());
1617+
collection.deleteIndex(indexResult.getId()).get();
16181618
}
16191619

16201620
@ParameterizedTest(name = "{index}")
@@ -2845,7 +2845,7 @@ void replaceDocumentsRawData(ArangoCollectionAsync collection) throws ExecutionE
28452845
@MethodSource("asyncCols")
28462846
void replaceDocumentsRawDataReturnNew(ArangoCollectionAsync collection) throws ExecutionException, InterruptedException {
28472847
final RawData values = RawJson.of("[{\"_key\":\"1\"}, {\"_key\":\"2\"}]");
2848-
collection.insertDocuments(values);
2848+
collection.insertDocuments(values).get();
28492849

28502850
final RawData updatedValues = RawJson.of("[{\"_key\":\"1\", \"foo\":\"bar\"}, {\"_key\":\"2\", " +
28512851
"\"foo\":\"bar\"}]");

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /