Browse files

Test for invalid thread count

  • Loading branch information...
1 parent ae447bd commit 628af0c2ded9bb92f22dd533a73f7213eafe07a9 @gar1t gar1t committed Jun 11, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/erlzmq_test.erl
View
3 test/erlzmq_test.erl
@@ -55,6 +55,9 @@ reqrep_tcp_test() ->
basic_tests("tcp://127.0.0.1:5556", req, rep, active),
basic_tests("tcp://127.0.0.1:5557", req, rep, passive).
+bad_init_test() ->
+ ?assertEqual({error, einval}, erlzmq:context(-1)).
+
shutdown_stress_test() ->
?assertMatch(ok, shutdown_stress_loop(10)).

0 comments on commit 628af0c

Please sign in to comment.