aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-13 00:10:32 +0100
committerLoïc Hoguin <[email protected]>2013-01-13 00:10:32 +0100
commit5dd09737d09f1a9e4b63e514e18973f174417215 (patch)
tree9b6ed7e8aba2626906da6e2ba4b3f88c83115c41 /test
parentcccc0bc475d903e553c66c844f5bc0b0934e2b59 (diff)
downloadcowboy-5dd09737d09f1a9e4b63e514e18973f174417215.tar.gz
cowboy-5dd09737d09f1a9e4b63e514e18973f174417215.tar.bz2
cowboy-5dd09737d09f1a9e4b63e514e18973f174417215.zip
Websocket text frames are now checked for UTF-8 correctness
The autobahntestsuite now passes 100% of the tests. We are getting close to fully implementing the Websocket RFC.
Diffstat (limited to 'test')
-rw-r--r--test/autobahn_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/autobahn_SUITE.erl b/test/autobahn_SUITE.erl
index c3fad58..f9d5a01 100644
--- a/test/autobahn_SUITE.erl
+++ b/test/autobahn_SUITE.erl
@@ -92,7 +92,7 @@ run_tests(Config) ->
_ -> ok
end,
{ok, IndexHTML} = file:read_file(IndexFile),
- case binary:match(IndexHTML, <<"Fail">>) of
- {_, _} -> erlang:error(failed);
- nomatch -> ok
+ case length(binary:matches(IndexHTML, <<"case_failed">>)) > 2 of
+ true -> erlang:error(failed);
+ false -> ok
end.