Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test case for bug #128.

  • Loading branch information...
commit dd4330843211fbf3d0901729cf3672d73519e8db 1 parent 18c0f53
@leg0 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/t2/app_test.erl
View
5 test/t2/app_test.erl
@@ -905,6 +905,11 @@ test_websocket() ->
<<129, 133, "aaaa", 38722669838:5/integer-unit:8>>,
ok = gen_tcp:send(Sock, Frame),
ExpectFrame = <<129, 5, "hello">>,
+ {ok, ExpectFrame} = gen_tcp:recv(Sock, 0, 2000),
+
+ %% Text frame "hello" without masking
+ UnmaskedFrame = <<129, 5, "hello">>,
+ ok = gen_tcp:send(Sock, UnmaskedFrame),
{ok, ExpectFrame} = gen_tcp:recv(Sock, 0, 2000).
test_embedded_id_dir() ->
Please sign in to comment.
Something went wrong with that request. Please try again.