0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Move some tests out of the old HTTP test suite

And additional minor tweaks.
This commit is contained in:
Loïc Hoguin 2018-11-21 10:25:01 +01:00
parent 9e852b4dd2
commit dc240adc1e
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
4 changed files with 154 additions and 126 deletions

View file

@ -152,6 +152,8 @@ raw_recv_head(Socket, Transport, Buffer) ->
raw_recv({raw_client, Socket, Transport}, Length, Timeout) ->
Transport:recv(Socket, Length, Timeout).
raw_expect_recv({raw_client, _, _}, <<>>) ->
ok;
raw_expect_recv({raw_client, Socket, Transport}, Expect) ->
{ok, Expect} = Transport:recv(Socket, iolist_size(Expect), 10000),
ok.