Skip to content

Commit 409049c

Browse files
committed
resilience tests: increased delay
1 parent 063a20b commit 409049c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resilience-tests/src/test/java/resilience/shutdown/ShutdownTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void shutdownWithPendingRequests(Protocol protocol) {
6464
.build();
6565

6666
ScheduledExecutorService es = Executors.newSingleThreadScheduledExecutor();
67-
es.schedule(arangoDB::shutdown, 200, TimeUnit.MILLISECONDS);
67+
es.schedule(arangoDB::shutdown, 500, TimeUnit.MILLISECONDS);
6868
Throwable thrown = catchThrowable(() -> arangoDB.db().query("return sleep(1)", Void.class));
6969
assertThat(thrown).isInstanceOf(ArangoDBException.class);
7070
assertThat(thrown.getCause()).isInstanceOf(IOException.class);
@@ -82,7 +82,7 @@ void shutdownWithPendingRequestsAsync(Protocol protocol) {
8282
.async();
8383

8484
ScheduledExecutorService es = Executors.newSingleThreadScheduledExecutor();
85-
es.schedule(arangoDB::shutdown, 200, TimeUnit.MILLISECONDS);
85+
es.schedule(arangoDB::shutdown, 500, TimeUnit.MILLISECONDS);
8686
Throwable thrown = catchThrowable(() -> arangoDB.db().query("return sleep(1)", Void.class).get()).getCause();
8787
assertThat(thrown).isInstanceOf(ArangoDBException.class);
8888
assertThat(thrown.getCause()).isInstanceOf(IOException.class);

0 commit comments

Comments
 (0)