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

rnewson pushed a commit to branch auto-delete-3
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 99f13ccdcb98003c9c6246c1a08e065a18b15dc4
Author: Robert Newson <[email protected]>
AuthorDate: Thu May 29 23:41:46 2025 +0100

    simpler doc id gen
---
 test/elixir/test/drop_seq_statem_test.exs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/elixir/test/drop_seq_statem_test.exs 
b/test/elixir/test/drop_seq_statem_test.exs
index a681f58ab..631fac3a5 100644
--- a/test/elixir/test/drop_seq_statem_test.exs
+++ b/test/elixir/test/drop_seq_statem_test.exs
@@ -53,10 +53,9 @@ defmodule DropSeqStateM do
     state()
   end
 
-  @max_doc_ids 10
-  @doc_ids 1..@max_doc_ids |> Enum.map(&"doc-#{&1}")
-
-  def doc_id, do: oneof(@doc_ids)
+  def doc_id do
+    "doc-#{Enum.random(1..20)}"
+  end
 
   def command(_state) do
     oneof([

Reply via email to