Skip to content

Commit c0cfcf6

Browse files
committed
test fixes
1 parent 60cfa33 commit c0cfcf6

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
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}")
@@ -1774,7 +1774,7 @@ void createTtlIndexWithOptions(ArangoCollectionAsync collection) throws Executio
17741774
assertThat(indexResult.getName()).isEqualTo(name);
17751775

17761776
// revert changes
1777-
collection.deleteIndex(indexResult.getId());
1777+
collection.deleteIndex(indexResult.getId()).get();
17781778
}
17791779

17801780
@ParameterizedTest(name = "{index}")
@@ -2922,11 +2922,11 @@ void rename(ArangoCollectionAsync collection) throws ExecutionException, Interru
29222922
ArangoDatabaseAsync db = collection.db();
29232923

29242924
if (!db.collection("c1").exists().get()) {
2925-
db.collection("c1").create();
2925+
db.collection("c1").create().get();
29262926
}
29272927

29282928
if (db.collection("c2").exists().get()) {
2929-
db.collection("c2").drop();
2929+
db.collection("c2").drop().get();
29302930
}
29312931

29322932
final CollectionEntity result = db.collection("c1").rename("c2").get();

driver/src/test/java/com/arangodb/ArangoDatabaseAsyncTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ void changeQueryCache(ArangoDatabaseAsync db) throws ExecutionException, Interru
734734

735735
final QueryCachePropertiesEntity properties2 = new QueryCachePropertiesEntity();
736736
properties2.setMode(CacheMode.off);
737-
db.setQueryCacheProperties(properties2);
737+
db.setQueryCacheProperties(properties2).get();
738738
}
739739

740740
// @ParameterizedTest(name = "{index}")

driver/src/test/java/com/arangodb/ArangoGraphAsyncTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void createWithReplicationAndWriteConcern(ArangoDatabaseAsync db) throws Executi
109109
assertThat(graph.getName()).isEqualTo(GRAPH_NAME + "_1");
110110
assertThat(graph.getWriteConcern()).isEqualTo(2);
111111
assertThat(graph.getReplicationFactor().get()).isEqualTo(2);
112-
db.graph(GRAPH_NAME + "_1").drop();
112+
db.graph(GRAPH_NAME + "_1").drop().get();
113113
}
114114

115115
@ParameterizedTest(name = "{index}")

0 commit comments

Comments
 (0)