Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

taking care of failure modes in the mediator.

  • Loading branch information...
commit d8af1ab5f1a1e7131005dfe03ace82b3d256dbaa 1 parent 36c0712
Cliff Moon authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 etest/mediator_test.erl
View
10 etest/mediator_test.erl
@@ -48,4 +48,12 @@ two_bad_servers_test() ->
{failure, _} = mediator:get(<<"key1">>),
{failure, _} = mediator:delete(<<"key1">>),
{failure, _} = mediator:has_key(<<"key1">>),
- stop_integrated(1, 2).
+ stop_integrated(1, 2).
+
+three_bad_servers_test() ->
+ init_integrated(0, 3, {2, 2, 3}),
+ {failure, _} = mediator:put(<<"key1">>, [], <<"value1">>),
+ {failure, _} = mediator:get(<<"key1">>),
+ {failure, _} = mediator:delete(<<"key1">>),
+ {failure, _} = mediator:has_key(<<"key1">>),
+ stop_integrated(0, 3).
Please sign in to comment.
Something went wrong with that request. Please try again.