You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:11:56 UTC
[08/50] fabric commit: updated refs/heads/windsor-merge-121 to 79e6e2f
Add negative test for fencepost
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/a8a458b8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/a8a458b8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/a8a458b8
Branch: refs/heads/windsor-merge-121
Commit: a8a458b8b1b4a7032b1f5a49927ee384a99ce019
Parents: 2c341cf
Author: Robert Newson <ro...@cloudant.com>
Authored: Sat Aug 10 19:11:29 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Jul 31 10:54:20 2014 +0100
----------------------------------------------------------------------
src/fabric_rpc.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/a8a458b8/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 0f426d3..825691b 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -412,7 +412,8 @@ calculate_start_seq_test() ->
is_owner_test() ->
?assertNot(is_owner(foo, 1, [])),
- ?assert(is_owner(foo, 1, [{foo, 1}])),
+ ?assertNot(is_owner(foo, 1, [{foo, 1}])),
+ ?assert(is_owner(foo, 2, [{foo, 1}])),
?assert(is_owner(foo, 50, [{bar, 100}, {foo, 1}])),
?assert(is_owner(foo, 50, [{baz, 200}, {bar, 100}, {foo, 1}])),
?assert(is_owner(bar, 150, [{baz, 200}, {bar, 100}, {foo, 1}])).