File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
resilience-tests/src/test/java/resilience/shutdown Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments