Skip to content

Commit

Permalink
Increase read timeout on TLS warnings test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Jan 4, 2025
1 parent a7d5f7b commit 1ee81e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/bandit/initial_handler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ defmodule InitialHandlerTest do

@tag :capture_log
test "TLS connection is made to a TCP server", context do
base_url = String.replace_prefix(context.req.options.base_url, "http", "https")
context =
context
|> http_server(thousand_island_options: [read_timeout: 1000])
|> Enum.into(context)

base_url = String.replace_prefix(context.base, "http", "https")
_ = Req.get(context.req, url: "/report_version", base_url: base_url)

assert_receive {:log, %{level: :warning, msg: {:string, msg}}}, 500
Expand Down

0 comments on commit 1ee81e9

Please sign in to comment.