aboutsummaryrefslogtreecommitdiffstats
path: root/test/cowboy_test.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/cowboy_test.erl')
-rw-r--r--test/cowboy_test.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl
index 0c02868..a8cb364 100644
--- a/test/cowboy_test.erl
+++ b/test/cowboy_test.erl
@@ -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.