implement dummy shutdown method on ContextHandler

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-05-09 17:14:00 +10:00
parent 23dcefcd47
commit af8e89c1b1
2 changed files with 3 additions and 3 deletions

View File

@ -436,7 +436,9 @@ public class ContextHandler extends Handler.Wrapper implements Attributes, Grace
public CompletableFuture<Void> shutdown()
{
// TODO
return null;
CompletableFuture<Void> completableFuture = new CompletableFuture<>();
completableFuture.complete(null);
return completableFuture;
}
/**

View File

@ -25,7 +25,6 @@ import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
@ -33,7 +32,6 @@ import static org.hamcrest.Matchers.is;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
@Disabled
public class GracefulCloseTest
{
private final EventSocket serverEndpoint = new EchoSocket();