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 2021/03/12 20:35:04 UTC

[couchdb] branch remove-membership-call-from-set-config created (now 5f93415)

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

vatamane pushed a change to branch remove-membership-call-from-set-config
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 5f93415  Remove _membership call from set_config_raw in integration tests

This branch includes the following new commits:

     new 5f93415  Remove _membership call from set_config_raw in integration tests

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: Remove _membership call from set_config_raw in integration tests

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

vatamane pushed a commit to branch remove-membership-call-from-set-config
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 5f93415622c9f487731e78bd883ab80236d789b4
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Fri Mar 12 15:30:23 2021 -0500

    Remove _membership call from set_config_raw in integration tests
    
    Since we run `elixir` tests with `-n 1` we can just use `_local`
---
 test/elixir/lib/couch/db_test.ex | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/elixir/lib/couch/db_test.ex b/test/elixir/lib/couch/db_test.ex
index 652fa6b..be09074 100644
--- a/test/elixir/lib/couch/db_test.ex
+++ b/test/elixir/lib/couch/db_test.ex
@@ -104,16 +104,12 @@ defmodule Couch.DBTest do
   end
 
   def set_config_raw(section, key, value) do
-    resp = Couch.get("/_membership")
-
-    Enum.map(resp.body["all_nodes"], fn node ->
-      url = "/_node/#{node}/_config/#{section}/#{key}"
+      url = "/_node/_local/_config/#{section}/#{key}"
       headers = ["X-Couch-Persist": "false"]
       body = :jiffy.encode(value)
       resp = Couch.put(url, headers: headers, body: body)
       assert resp.status_code == 200
       {node, resp.body}
-    end)
   end
 
   def prepare_user_doc(user) do