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:
parent
9e852b4dd2
commit
dc240adc1e
4 changed files with 154 additions and 126 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue