Removed deprecated httpcore func (#19550)
* Remove Deprecated httpcore func * Remove Deprecated httpcore func * Fix a test with Deprecated func * Restart CI, Apple can code shit anymore I tell you
This commit is contained in:
parent
4c76f9f152
commit
7a50d66346
3 changed files with 5 additions and 14 deletions
|
|
@ -39,7 +39,7 @@ proc test200() {.async.} =
|
|||
return clientResponse
|
||||
|
||||
proc test(response: AsyncResponse, body: string) {.async.} =
|
||||
doAssert(response.status == Http200)
|
||||
doAssert(response.status == $Http200)
|
||||
doAssert(body == "Hello World, 200")
|
||||
doAssert(response.headers.hasKey("Content-Length"))
|
||||
doAssert(response.headers["Content-Length"] == "16")
|
||||
|
|
@ -60,7 +60,7 @@ proc test404() {.async.} =
|
|||
return clientResponse
|
||||
|
||||
proc test(response: AsyncResponse, body: string) {.async.} =
|
||||
doAssert(response.status == Http404)
|
||||
doAssert(response.status == $Http404)
|
||||
doAssert(body == "Hello World, 404")
|
||||
doAssert(response.headers.hasKey("Content-Length"))
|
||||
doAssert(response.headers["Content-Length"] == "16")
|
||||
|
|
@ -81,7 +81,7 @@ proc testCustomEmptyHeaders() {.async.} =
|
|||
return clientResponse
|
||||
|
||||
proc test(response: AsyncResponse, body: string) {.async.} =
|
||||
doAssert(response.status == Http200)
|
||||
doAssert(response.status == $Http200)
|
||||
doAssert(body == "Hello World, 200")
|
||||
doAssert(response.headers.hasKey("Content-Length"))
|
||||
doAssert(response.headers["Content-Length"] == "16")
|
||||
|
|
@ -104,7 +104,7 @@ proc testCustomContentLength() {.async.} =
|
|||
return clientResponse
|
||||
|
||||
proc test(response: AsyncResponse, body: string) {.async.} =
|
||||
doAssert(response.status == Http200)
|
||||
doAssert(response.status == $Http200)
|
||||
doAssert(body == "")
|
||||
doAssert(response.headers.hasKey("Content-Length"))
|
||||
doAssert(response.headers["Content-Length"] == "0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue