You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/06/03 18:40:38 UTC

(couchdb) branch fix-fabric-view-teardown-test created (now d91cb0e8f)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch fix-fabric-view-teardown-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at d91cb0e8f Make sure to unload mecked modules in fabric_view

This branch includes the following new commits:

     new d91cb0e8f Make sure to unload mecked modules in fabric_view

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb) 01/01: Make sure to unload mecked modules in fabric_view

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-fabric-view-teardown-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d91cb0e8f17b202f85b605a28ae40177323bd586
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Mon Jun 3 14:36:21 2024 -0400

    Make sure to unload mecked modules in fabric_view
    
    Since we use meck:expect(...) in a few places in the test suite, we should run
    `meck:unload()` in teardown. To make it more obvious we're mocking things,
    explicitly use meck:new() in setup as well.
---
 src/fabric/src/fabric_view.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fabric/src/fabric_view.erl b/src/fabric/src/fabric_view.erl
index f84e9e301..677f1d5ae 100644
--- a/src/fabric/src/fabric_view.erl
+++ b/src/fabric/src/fabric_view.erl
@@ -760,8 +760,8 @@ t_detach_partition_no_partition_map(_) ->
 get_next_row_test_() ->
     {
         foreach,
-        fun() -> ok end,
-        fun(_) -> ok end,
+        fun() -> meck:new([rexi, couch_query_servers]) end,
+        fun(_) -> meck:unload() end,
         [
             ?TDEF_FE(t_get_next_row_end),
             ?TDEF_FE(t_get_next_row_map),