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


The following commit(s) were added to refs/heads/auto-delete-3 by this push:
     new 22e8acab7 pretty print propcheck failure
22e8acab7 is described below

commit 22e8acab7d7ef97c315506db6c1afa89e4bbf8dd
Author: Robert Newson <[email protected]>
AuthorDate: Tue Jun 3 22:46:25 2025 +0100

    pretty print propcheck failure
---
 test/elixir/test/drop_seq_statem_test.exs | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/test/elixir/test/drop_seq_statem_test.exs 
b/test/elixir/test/drop_seq_statem_test.exs
index 1e509df0b..1c30ba968 100644
--- a/test/elixir/test/drop_seq_statem_test.exs
+++ b/test/elixir/test/drop_seq_statem_test.exs
@@ -21,19 +21,11 @@ defmodule DropSeqStateM do
         q = Enum.random(1..10)
         {:ok, _} = create_db(db_name, query: %{n: n, q: q})
         r = run_commands(__MODULE__, cmds, [{:dbname, db_name}])
-        {history, state, result} = r
+        {_history, _state, result} = r
         delete_db(db_name)
 
         (result == :ok)
-        |> when_fail(
-          IO.puts("""
-          n: #{n}, q: #{q}
-          Commands: #{inspect(cmds, pretty: true)}
-          History: #{inspect(history, pretty: true)}
-          State: #{inspect(state, pretty: true)}
-          Result: #{inspect(result, pretty: true)}
-          """)
-        )
+        |> when_fail(print_report(r, cmds))
       end
     end
   end

Reply via email to