diff options
Diffstat (limited to 'test/autobahn_SUITE.erl')
-rw-r--r-- | test/autobahn_SUITE.erl | 6 |
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. |