couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [28/50] git commit: Fix unit test
Date Fri, 17 Jan 2014 21:50:28 GMT
Fix unit test


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/9f09897f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/9f09897f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/9f09897f

Branch: refs/heads/import
Commit: 9f09897f9cecc9393407c02e35a6db083876130b
Parents: 5015693
Author: Bob Dionne <bob@cloudant.com>
Authored: Thu Feb 21 17:44:40 2013 -0500
Committer: Bob Dionne <bob@cloudant.com>
Committed: Thu Feb 21 17:44:40 2013 -0500

----------------------------------------------------------------------
 src/fabric_view_changes.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/9f09897f/src/fabric_view_changes.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view_changes.erl b/src/fabric_view_changes.erl
index b69897f..e2b9756 100644
--- a/src/fabric_view_changes.erl
+++ b/src/fabric_view_changes.erl
@@ -372,7 +372,9 @@ validate_start_seq(DbName, Seq) ->
 
 unpack_seqs_test() ->
     meck:new(mem3),
+    meck:new(fabric_view),
     meck:expect(mem3, get_shard, fun(_, _, _) -> {ok, #shard{}} end),
+    meck:expect(fabric_view, is_progress_possible, fun(_) -> true end),
 
     % BigCouch 0.3 style.
     assert_shards("23423-g1AAAAE7eJzLYWBg4MhgTmHgS0ktM3QwND"
@@ -411,6 +413,7 @@ unpack_seqs_test() ->
     "LXMwBCwxygOFMiQ5L8____sxIZcKlIUgCSSfZgRUw4FTmAFMWDFTHiVJQAUlSPX1Ee"
     "C5BkaABSQHXzsxKZ8StcAFG4H4_bIAoPQBTeJ2j1A4hCUJBkAQC7U1NA\""),
 
+    meck:unload(fabric_view),
     meck:unload(mem3).
 
 assert_shards(Packed) ->


Mime
View raw message