Skip to content

Commit

Permalink
plz
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Aug 29, 2023
1 parent 7f756d6 commit 81911ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/req/steps_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1633,16 +1633,20 @@ defmodule Req.StepsTest do
refute_receive _
end

test "into: fun with halt", %{bypass: bypass, url: url} do
test "into: fun with halt", %{bypass: bypass, url: url, test: test} do

Check failure on line 1636 in test/req/steps_test.exs

View workflow job for this annotation

GitHub Actions / test (1.13, 24.3.4.10)

test run_finch into: fun with halt (Req.StepsTest)

Check failure on line 1636 in test/req/steps_test.exs

View workflow job for this annotation

GitHub Actions / test (1.15, 26.0, lint)

test run_finch into: fun with halt (Req.StepsTest)
Bypass.expect(bypass, "GET", "/", fn conn ->
conn = Plug.Conn.send_chunked(conn, 200)
{:ok, conn} = Plug.Conn.chunk(conn, "foo")
{:ok, conn} = Plug.Conn.chunk(conn, "bar")
conn
end)

# TODO: remove when we use Finch.stream_while
start_supervised!({Finch, name: test})

resp =
Req.get!(
finch: test,
url: url,
into: fn {:data, data}, {req, resp} ->
resp = update_in(resp.body, &(&1 <> data))
Expand Down

0 comments on commit 81911ec

Please sign in to comment.