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 2019/02/13 16:13:46 UTC

[couchdb] branch shard-split updated: Fix some unused vars and functions

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

vatamane pushed a commit to branch shard-split
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/shard-split by this push:
     new b46ade4  Fix some unused vars and functions
b46ade4 is described below

commit b46ade4ad3ec7ce8757de7869361de9c690478a4
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Wed Feb 13 11:13:37 2019 -0500

    Fix some unused vars and functions
---
 src/mem3/test/mem3_reshard_api_test.erl | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/mem3/test/mem3_reshard_api_test.erl b/src/mem3/test/mem3_reshard_api_test.erl
index 48acd71..e4ba5ed 100644
--- a/src/mem3/test/mem3_reshard_api_test.erl
+++ b/src/mem3/test/mem3_reshard_api_test.erl
@@ -652,7 +652,7 @@ check_max_jobs(Top) ->
         ?assertMatch({500, [#{<<"error">> := <<"max_jobs_exceeded">>}]}, {C1, R1}),
 
         config:set("mem3_reshard", "max_jobs", "1", _Persist=false),
-        {C2, R2} = req(post, Jobs,  #{type => split, db => <<?DB1>>}),
+        {201, R2} = req(post, Jobs,  #{type => split, db => <<?DB1>>}),
         wait_to_complete(Top, R2),
 
         % Stop clustering so jobs are not started anymore and ensure max jobs is
@@ -754,10 +754,6 @@ recover_in_state(Top, Db, State) when is_atom(State) ->
     Id.
 
 
-create_db(Top, Db) ->
-    create_db(Top, Db, "").
-
-
 create_db(Top, Db, QArgs) ->
     Url = Top ++ Db ++ QArgs,
     {ok, Status, _, _} = test_request:put(Url, [?JSON, ?AUTH], "{}"),