File tree Expand file tree Collapse file tree
server/src/main/java/software/xdev/mockserver/lifecycle Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616package software .xdev .mockserver .lifecycle ;
1717
1818import static java .util .concurrent .TimeUnit .MILLISECONDS ;
19- import static java .util .concurrent .TimeUnit .MINUTES ;
2019import static java .util .concurrent .TimeUnit .SECONDS ;
2120import static software .xdev .mockserver .configuration .ServerConfiguration .configuration ;
2221import static software .xdev .mockserver .mock .HttpState .setPort ;
@@ -92,7 +91,7 @@ public CompletableFuture<Void> stopAsync()
9291 .flatMap (channelFuture -> {
9392 try
9493 {
95- return Stream .of (channelFuture .get (5 , MINUTES ));
94+ return Stream .of (channelFuture .get (60 , SECONDS ));
9695 }
9796 catch (final Exception ex )
9897 {
@@ -106,7 +105,7 @@ public CompletableFuture<Void> stopAsync()
106105 {
107106 for (final ChannelFuture channelFuture : collect )
108107 {
109- channelFuture .get (5 , MINUTES );
108+ channelFuture .get (60 , SECONDS );
110109 }
111110 }
112111 catch (final Exception ex )
You can’t perform that action at this time.
0 commit comments