Skip to content

Commit fe6bc31

Browse files
author
mpv1989
committed
Fix tests
1 parent e3d142e commit fe6bc31

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/test/java/com/arangodb/ArangoCollectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ public void deleteDocument() throws InterruptedException, ExecutionException {
676676
final BaseDocument doc = new BaseDocument();
677677
final DocumentCreateEntity<BaseDocument> createResult = db.collection(COLLECTION_NAME).insertDocument(doc, null)
678678
.get();
679-
db.collection(COLLECTION_NAME).deleteDocument(createResult.getKey(), null, null);
679+
db.collection(COLLECTION_NAME).deleteDocument(createResult.getKey(), null, null).get();
680680
final CompletableFuture<BaseDocument> f = db.collection(COLLECTION_NAME).getDocument(createResult.getKey(),
681681
BaseDocument.class, null);
682682
assertThat(f, is(notNullValue()));

src/test/java/com/arangodb/ArangoDBTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void getDatabases() throws InterruptedException, ExecutionException {
120120
assertThat(dbs, hasItem("_system"));
121121
assertThat(dbs, hasItem(BaseTest.TEST_DB));
122122
} finally {
123-
arangoDB.db(BaseTest.TEST_DB).drop();
123+
arangoDB.db(BaseTest.TEST_DB).drop().get();
124124
}
125125
}
126126

@@ -164,7 +164,7 @@ public void createUser() throws InterruptedException, ExecutionException {
164164
});
165165
f.get();
166166
} finally {
167-
arangoDB.deleteUser(USER);
167+
arangoDB.deleteUser(USER).get();
168168
}
169169
}
170170

@@ -510,7 +510,7 @@ public void setLogLevel() throws InterruptedException, ExecutionException {
510510
f.get();
511511
} finally {
512512
entity.setAgency(LogLevelEntity.LogLevel.INFO);
513-
arangoDB.setLogLevel(entity);
513+
arangoDB.setLogLevel(entity).get();
514514
}
515515
}
516516
}

src/test/java/com/arangodb/ArangoDatabaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public void changeQueryCache() throws InterruptedException, ExecutionException {
558558
} finally {
559559
final QueryCachePropertiesEntity properties = new QueryCachePropertiesEntity();
560560
properties.setMode(CacheMode.off);
561-
db.setQueryCacheProperties(properties);
561+
db.setQueryCacheProperties(properties).get();
562562
}
563563
}
564564

0 commit comments

Comments
 (0)