Skip to content
Open
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 @@ -1170,6 +1170,7 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {
}

response.body().contentLength() < 1 || redirectHasBody()
response.close()

and:
assertTraces(1) {
Expand Down Expand Up @@ -1210,6 +1211,8 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {
if (bubblesResponse()) {
assert response.body().string().contains(ERROR.body)
assert response.code() == ERROR.status
} else {
response.close()
}

and:
Expand Down Expand Up @@ -1255,6 +1258,8 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {
response.code() == EXCEPTION.status
if (testExceptionBody()) {
assert response.body().string() == EXCEPTION.body
} else {
response.close()
}

and:
Expand Down Expand Up @@ -1299,6 +1304,7 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {

expect:
response.code() == NOT_FOUND.status
response.close()

and:
assertTraces(1) {
Expand Down Expand Up @@ -1836,6 +1842,7 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {
response.code() == 301
response.header('location') == 'https://www.google.com/'
!handlerRan
response.close()

when:
TEST_WRITER.waitForTraces(1)
Expand Down Expand Up @@ -2117,6 +2124,7 @@ abstract class HttpServerTest<SERVER> extends WithHttpServer<SERVER> {
}
response.code() == 301
response.header("Location") == 'https://www.google.com/'
response.close()
TEST_WRITER.waitForTraces(1)
def trace = TEST_WRITER.get(0)

Expand Down
Loading