fix(test): clear CSP map on Server reset (#28)

This commit is contained in:
Yury Semikhatsky 2020-10-21 10:25:36 -07:00 committed by GitHub
parent 043108e09a
commit 3690079b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,6 @@ import java.util.concurrent.Future;
import static java.util.Collections.singletonList; import static java.util.Collections.singletonList;
public class Server implements HttpHandler { public class Server implements HttpHandler {
private static final int port = 8907;
private static final int httpsPort = 8908;
private final HttpServer server; private final HttpServer server;
public final String PREFIX; public final String PREFIX;
@ -135,6 +133,7 @@ public class Server implements HttpHandler {
void reset() { void reset() {
requestSubscribers.clear(); requestSubscribers.clear();
auths.clear(); auths.clear();
csp.clear();
routes.clear(); routes.clear();
} }