You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/03/10 16:19:51 UTC

[GitHub] [couchdb] nickva commented on a change in pull request #3413: Verify correctness with concurrent updates

nickva commented on a change in pull request #3413:
URL: https://github.com/apache/couchdb/pull/3413#discussion_r591666243



##########
File path: test/elixir/test/concurrent_writes_test.exs
##########
@@ -0,0 +1,47 @@
+defmodule ConcurrentWritesTest do
+  use CouchTestCase
+
+  @moduletag :concurrent_writes
+  @moduletag kind: :single_node
+
+  @moduledoc """
+  Test CouchDB under concurrent write load
+  """
+
+  @tag :with_db
+  test "Primary data tests", context do
+    db_name = context[:db_name]
+    parent = self()
+    Enum.each(1..99,

Review comment:
       Minor nit: make 99 a variable at the top somewhere so we could make the test run with say 1000 or more docs if needed




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org