Skip to content

Commit 0629f9a

Browse files
committed
test fix
1 parent 6acd318 commit 0629f9a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,6 @@ void queryAllowRetry(ArangoDB arangoDB) throws IOException {
10131013
final ArangoCursor<String> cursor = arangoDB.db()
10141014
.query("for i in 1..2 return i", String.class, new AqlQueryOptions().allowRetry(true).batchSize(1));
10151015
assertThat(cursor.asListRemaining()).containsExactly("1", "2");
1016-
cursor.close();
10171016
}
10181017

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

resilience-tests/src/test/java/resilience/retry/RetriableCursorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static Stream<ArangoDB> arangoProvider() {
2727
return Stream.of(
2828
dbBuilder().timeout(1_000).protocol(Protocol.VST).build(),
2929
dbBuilder().timeout(1_000).protocol(Protocol.HTTP_JSON).build(),
30-
dbBuilder().timeout(1_000).protocol(Protocol.HTTP2_VPACK).build()
30+
dbBuilder().timeout(1_000).protocol(Protocol.HTTP_VPACK).build()
3131
);
3232
}
3333

@@ -45,7 +45,7 @@ void retryCursor(ArangoDB arangoDB) throws IOException {
4545
Latency toxic = getEndpoint().getProxy().toxics().latency("latency", ToxicDirection.DOWNSTREAM, 10_000);
4646
Throwable thrown = catchThrowable(cursor::next);
4747
assertThat(thrown).isInstanceOf(ArangoDBException.class);
48-
assertThat(thrown.getCause()).isInstanceOfAny(TimeoutException.class, IOException.class);
48+
assertThat(thrown.getCause()).isInstanceOfAny(TimeoutException.class);
4949
toxic.remove();
5050
assertThat(cursor.next()).isEqualTo("2");
5151
assertThat(cursor.hasNext()).isFalse();

0 commit comments

Comments
 (0)