Skip to content

Commit 6d5e240

Browse files
committed
Update AbstractJdkHttpServerTest.java
1 parent 55808e4 commit 6d5e240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/java-http-server/testing/src/main/java/io/opentelemetry/instrumentation/httpserver/AbstractJdkHttpServerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ protected HttpServer setupServer() throws IOException {
177177

178178
@Override
179179
protected void stopServer(HttpServer server) {
180+
//I guess the server has trouble stopping?
180181
CompletableFuture.runAsync(() -> server.stop(1000));
181182
}
182183

@@ -195,7 +196,6 @@ public void doFilter(HttpExchange exchange, Chain chain) throws IOException {
195196

196197
if (!Span.current().getSpanContext().isValid()) {
197198
// Return an invalid code to fail any assertion
198-
199199
exchange.sendResponseHeaders(601, -1);
200200
}
201201

0 commit comments

Comments
 (0)