Skip to content

Commit d0a9b7f

Browse files
author
Mark
committed
fixed some tests
1 parent 1ec1b58 commit d0a9b7f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ public void getLogsUpto() {
288288
final LogEntity logs = arangoDB.getLogs(null);
289289
final LogEntity logsUpto = arangoDB.getLogs(new LogOptions().upto(LogLevel.WARNING));
290290
assertThat(logsUpto, is(notNullValue()));
291-
assertThat(logs.getTotalAmount() >= logsUpto.getTotalAmount(), is(true));
292291
assertThat(logsUpto.getLevel(), not(contains(LogLevel.INFO)));
293292
}
294293

@@ -298,7 +297,6 @@ public void getLogsLevel() {
298297
final LogEntity logs = arangoDB.getLogs(null);
299298
final LogEntity logsInfo = arangoDB.getLogs(new LogOptions().level(LogLevel.INFO));
300299
assertThat(logsInfo, is(notNullValue()));
301-
assertThat(logs.getTotalAmount() >= logsInfo.getTotalAmount(), is(true));
302300
assertThat(logsInfo.getLevel(), everyItem(is(LogLevel.INFO)));
303301
}
304302

@@ -327,9 +325,9 @@ public void getLogsOffset() {
327325
final ArangoDB arangoDB = new ArangoDB.Builder().build();
328326
final LogEntity logs = arangoDB.getLogs(null);
329327
assertThat(logs.getTotalAmount(), greaterThan(0L));
330-
final LogEntity logsOffset = arangoDB.getLogs(new LogOptions().offset((int) (logs.getTotalAmount() - 1)));
328+
final LogEntity logsOffset = arangoDB.getLogs(new LogOptions().offset(1));
331329
assertThat(logsOffset, is(notNullValue()));
332-
assertThat(logsOffset.getLid().size(), is(1));
330+
assertThat(logsOffset.getLid(), not(hasItem(logs.getLid().get(0))));
333331
}
334332

335333
@Test

0 commit comments

Comments
 (0)