Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public AgentSpan onResponseStatus(AgentSpan span, int status) {
// we may have the status during response blocking, but in that case
// the status code is not propagated to the servlet layer
if (currentStatus == null || !span.isError()) {
span.setHttpStatusCode(status);
super.onResponseStatus(span, status);
}
return span;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ abstract class Liberty20Test extends HttpServerTest<Server> {
true
}

@Override
String expectedResourceName(ServerEndpoint endpoint, String method, URI address) {
if (endpoint.path == '/not-found') {
'GET /testapp/not-found'
} else {
super.expectedResourceName(endpoint, method, address)
}
}

def 'test blocking on response with commit during the response'() {
setup:
assumeTrue(testBlockingOnResponse())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public AgentSpan onResponseStatus(AgentSpan span, int status) {
// we may have the status during response blocking, but in that case
// the status code is not propagated to the servlet layer
if (currentStatus == null || !span.isError()) {
span.setHttpStatusCode(status);
super.onResponseStatus(span, status);
}
return span;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@ abstract class Liberty23Test extends HttpServerTest<Server> {
true
}

@Override
String expectedResourceName(ServerEndpoint endpoint, String method, URI address) {
if (endpoint.path == '/not-found') {
'GET /testapp/not-found'
} else {
super.expectedResourceName(endpoint, method, address)
}
}

def 'test blocking on response with commit during the response'() {
setup:
assumeTrue(testBlockingOnResponse())
Expand Down
Loading