File tree 1 file changed +2
-2
lines changed
resilience-tests/src/test/java/resilience/shutdown
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) {
64
64
.build ();
65
65
66
66
ScheduledExecutorService es = Executors .newSingleThreadScheduledExecutor ();
67
- es .schedule (arangoDB ::shutdown , 200 , TimeUnit .MILLISECONDS );
67
+ es .schedule (arangoDB ::shutdown , 500 , TimeUnit .MILLISECONDS );
68
68
Throwable thrown = catchThrowable (() -> arangoDB .db ().query ("return sleep(1)" , Void .class ));
69
69
assertThat (thrown ).isInstanceOf (ArangoDBException .class );
70
70
assertThat (thrown .getCause ()).isInstanceOf (IOException .class );
@@ -82,7 +82,7 @@ void shutdownWithPendingRequestsAsync(Protocol protocol) {
82
82
.async ();
83
83
84
84
ScheduledExecutorService es = Executors .newSingleThreadScheduledExecutor ();
85
- es .schedule (arangoDB ::shutdown , 200 , TimeUnit .MILLISECONDS );
85
+ es .schedule (arangoDB ::shutdown , 500 , TimeUnit .MILLISECONDS );
86
86
Throwable thrown = catchThrowable (() -> arangoDB .db ().query ("return sleep(1)" , Void .class ).get ()).getCause ();
87
87
assertThat (thrown ).isInstanceOf (ArangoDBException .class );
88
88
assertThat (thrown .getCause ()).isInstanceOf (IOException .class );
You can’t perform that action at this time.
0 commit comments