Skip to content

Commit 51cc767

Browse files
committed
Increase timeout for process_response/3 to fix flaky tests
`changes_async_test.exs` become unstable when running Elixir tests with `OTP 27.3.4.3` and `Elixir 1.18.4`. Tests are passing when running against `OTP 27.3.4.2` and `OTP 27.3.4.1`. Increate timeout for `process_response/3` to mediate it. Error log: ```log [2025-10-13T21:10:06.495Z] 1) test continuous filtered changes with doc ids (ChangesAsyncTest) [2025-10-13T21:10:06.495Z] src/couchdb/test/elixir/test/changes_async_test.exs:309 [2025-10-13T21:10:06.495Z] Expected truthy, got false [2025-10-13T21:10:06.495Z] code: assert Enum.member?(changes_ids, "doc3") [2025-10-13T21:10:06.495Z] arguments: [2025-10-13T21:10:06.495Z] [2025-10-13T21:10:06.495Z] # 1 [2025-10-13T21:10:06.495Z] ["doc1"] [2025-10-13T21:10:06.495Z] [2025-10-13T21:10:06.495Z] # 2 [2025-10-13T21:10:06.495Z] "doc3" [2025-10-13T21:10:06.495Z] [2025-10-13T21:10:06.495Z] stacktrace: [2025-10-13T21:10:06.495Z] src/couchdb/test/elixir/test/changes_async_test.exs:338: (test) ```
1 parent 26920c2 commit 51cc767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/elixir/test/changes_async_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ defmodule ChangesAsyncTest do
394394
end
395395
end
396396

397-
defp process_response(id, chunk_parser, timeout \\ 1000) do
397+
defp process_response(id, chunk_parser, timeout \\ 3000) do
398398
receive do
399399
%HTTPotion.AsyncChunk{id: ^id} = msg ->
400400
chunk_parser.(msg)

0 commit comments

Comments
 (0)