You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "jiahuili430 (via GitHub)" <gi...@apache.org> on 2025/10/14 21:21:56 UTC

Re: [PR] Add debug lines for flaky elixir tests [couchdb]

jiahuili430 commented on code in PR #5702:
URL: https://github.com/apache/couchdb/pull/5702#discussion_r2430460878


##########
test/elixir/test/changes_async_test.exs:
##########
@@ -95,6 +95,7 @@ defmodule ChangesAsyncTest do
     create_doc_bar(db_name, "bar")
 
     changes = process_response(req_id.id, &parse_event/1)
+    Process.sleep(100)

Review Comment:
   https://github.com/apache/couchdb/blob/main/test/elixir/test/changes_async_test.exs#L397
   
   Maybe latest OTP 27 or Elixir 1.18 is a little bit slower than OTP 26 and Elixir 1.17.
   
   It feels like it's not having enough time to process and only returns the first element. Without `IO.inspect/2`, the changes_ids will be `["doc1"]` sometimes.
   
   Maybe I should use `IO.inspect/2` as it will also introduce some sleeps and easier to debug.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

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