File tree Expand file tree Collapse file tree
utils/ort/src/funTest/kotlin/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class HttpFileStorageFunTest : WordSpec() {
4646 when (exchange.requestMethod) {
4747 " PUT" -> {
4848 requests[exchange.requestURI.toString()] = exchange.requestBody.reader().use { it.readText() }
49- exchange.sendResponseHeaders(HttpURLConnection .HTTP_CREATED , 0 )
49+ exchange.sendResponseHeaders(HttpURLConnection .HTTP_CREATED , - 1 )
5050 }
5151
5252 " GET" -> {
@@ -55,7 +55,7 @@ class HttpFileStorageFunTest : WordSpec() {
5555 exchange.sendResponseHeaders(HttpURLConnection .HTTP_OK , 0 )
5656 exchange.responseBody.writer().use { it.write(data) }
5757 } else {
58- exchange.sendResponseHeaders(HttpURLConnection .HTTP_NOT_FOUND , 0 )
58+ exchange.sendResponseHeaders(HttpURLConnection .HTTP_NOT_FOUND , - 1 )
5959 }
6060 }
6161 }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class S3FileStorageFunTest : WordSpec() {
6060 " PUT" -> {
6161 val key = exchange.requestURI.toString().removePrefix(" /$bucket /" )
6262 requests[key] = exchange.requestBody.reader().use { it.readText() }.split(' \n ' )[1 ].trimEnd()
63- exchange.sendResponseHeaders(HttpURLConnection .HTTP_OK , 0 )
63+ exchange.sendResponseHeaders(HttpURLConnection .HTTP_OK , - 1 )
6464 }
6565
6666 " GET" -> {
You can’t perform that action at this time.
0 commit comments