Skip to content

Commit 2db1382

Browse files
author
mpv1989
committed
Fix tests
1 parent 78ad0d1 commit 2db1382

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
@@ -630,7 +630,7 @@ public void deleteDocument() throws InterruptedException, ExecutionException {
630630
final BaseDocument doc = new BaseDocument();
631631
final DocumentCreateEntity<BaseDocument> createResult = db.collection(COLLECTION_NAME).insertDocument(doc, null)
632632
.get();
633-
db.collection(COLLECTION_NAME).deleteDocument(createResult.getKey(), null, null);
633+
db.collection(COLLECTION_NAME).deleteDocument(createResult.getKey(), null, null).get();
634634
final CompletableFuture<BaseDocument> f = db.collection(COLLECTION_NAME).getDocument(createResult.getKey(),
635635
BaseDocument.class, null);
636636
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
@@ -114,7 +114,7 @@ public void getDatabases() throws InterruptedException, ExecutionException {
114114
assertThat(dbs, hasItem("_system"));
115115
assertThat(dbs, hasItem(BaseTest.TEST_DB));
116116
} finally {
117-
arangoDB.db(BaseTest.TEST_DB).drop();
117+
arangoDB.db(BaseTest.TEST_DB).drop().get();
118118
}
119119
}
120120

@@ -152,7 +152,7 @@ public void createUser() throws InterruptedException, ExecutionException {
152152
assertThat(result.getUser(), is(USER));
153153
assertThat(result.getChangePassword(), is(false));
154154
} finally {
155-
arangoDB.deleteUser(USER);
155+
arangoDB.deleteUser(USER).get();
156156
}
157157
}
158158

@@ -458,7 +458,7 @@ public void setLogLevel() throws InterruptedException, ExecutionException {
458458
assertThat(logLevel.getAgency(), is(LogLevelEntity.LogLevel.ERROR));
459459
} finally {
460460
entity.setAgency(LogLevelEntity.LogLevel.INFO);
461-
arangoDB.setLogLevel(entity);
461+
arangoDB.setLogLevel(entity).get();
462462
}
463463
}
464464
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public void changeQueryCache() throws InterruptedException, ExecutionException {
534534
} finally {
535535
final QueryCachePropertiesEntity properties = new QueryCachePropertiesEntity();
536536
properties.setMode(CacheMode.off);
537-
db.setQueryCacheProperties(properties);
537+
db.setQueryCacheProperties(properties).get();
538538
}
539539
}
540540

0 commit comments

Comments
 (0)