Skip to content

Commit

Permalink
fixes tests in Elixir 1.18
Browse files Browse the repository at this point in the history
ex_unit context :case no longer available since:
elixir-lang/elixir@ecac839
  • Loading branch information
grzuy committed Jan 21, 2025
1 parent 12c4e6b commit 699a51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/req_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ defmodule ReqHelpers do
defmacro __using__(_) do
quote location: :keep do
def req_http1_client(context) do
name = Module.concat(context.case, context.test)
name = Module.concat(context.module, context.test)
start_finch(name)
[req: build_req(base_url: context.base, finch: name)]
end

def req_h2_client(context) do
name = Module.concat(context.case, context.test)
name = Module.concat(context.module, context.test)
start_finch(name, protocols: [:http2])
[req: build_req(base_url: context.base, finch: name)]
end
Expand Down

0 comments on commit 699a51f

Please sign in to comment.