diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2021-03-12 15:30:23 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2021-03-13 00:46:34 -0500 |
commit | 38678d0360a0763d33b73aff7685bd2e1b62e9f8 (patch) | |
tree | 7dcda0aa846b3c42247352fc5677cbede36c8dad | |
parent | c508efedcabd560449e4dcbd7774a04b3907257e (diff) | |
download | couchdb-38678d0360a0763d33b73aff7685bd2e1b62e9f8.tar.gz |
Remove _membership call from set_config_raw in integration tests
Since we run `elixir` tests with `-n 1` we can just use `_local`
-rw-r--r-- | test/elixir/lib/couch/db_test.ex | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/elixir/lib/couch/db_test.ex b/test/elixir/lib/couch/db_test.ex index 652fa6bb6..2aa0880b2 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) + [{"_local", resp.body}] end def prepare_user_doc(user) do @@ -449,9 +445,7 @@ defmodule Couch.DBTest do end def run_on_modified_server(settings, fun) do - resp = Couch.get("/_membership") - assert resp.status_code == 200 - nodes = resp.body["all_nodes"] + nodes = ["_local"] prev_settings = Enum.map(settings, fn setting -> |