summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2021-12-22 16:32:11 +0000
committerRobert Newson <rnewson@apache.org>2021-12-23 15:00:38 +0000
commitfdabc4e0765b1562f134ea69118cf1236b9d703f (patch)
treeb11a1bebabe6b154c5d3e5e2934bdea254e4acf9
parent0de7b755ab0d722feb0ae8e498509243937e1782 (diff)
downloadcouchdb-enforce_rowlimit_mango.tar.gz
Update test to match new behaviourenforce_rowlimit_mango
-rw-r--r--test/elixir/test/partition_mango_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/elixir/test/partition_mango_test.exs b/test/elixir/test/partition_mango_test.exs
index 9e4f1e783..d2790b2cf 100644
--- a/test/elixir/test/partition_mango_test.exs
+++ b/test/elixir/test/partition_mango_test.exs
@@ -552,7 +552,7 @@ defmodule PartitionMangoTest do
create_partition_docs(db_name)
create_index(db_name, ["value"])
- # this is to test that we bypass partition_query_limit for mango
+ # this is to test that we enforce partition_query_limit for mango
set_config({"query_server_config", "partition_query_limit", "1"})
url = "/#{db_name}/_partition/foo/_find"
@@ -573,7 +573,7 @@ defmodule PartitionMangoTest do
assert resp.status_code == 200
partitions = get_partitions(resp)
- assert length(partitions) == 3
+ assert length(partitions) == 1
assert_correct_partition(partitions, "foo")
%{:body => %{"bookmark" => bookmark}} = resp
@@ -595,7 +595,7 @@ defmodule PartitionMangoTest do
assert resp.status_code == 200
partitions = get_partitions(resp)
- assert length(partitions) == 2
+ assert length(partitions) == 1
assert_correct_partition(partitions, "foo")
end