nickva commented on code in PR #5702:
URL: https://github.com/apache/couchdb/pull/5702#discussion_r2430596629
##########
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:
Yeah it's curious how it works. Maybe adding some extra debug logs around
parsing the result could reveal what's happening.
I am not very familiar with Elixir, does it looks like `changes` is pulling
data lazily when we call `length()` the first time? Otherwise the way it looks
is after `changes = ...` it shouldn't matter if we `sleep`, change is already
fetched (either completely or partially).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]