Skip to content

Commit

Permalink
Handle the Ruby 3.4 changes in Hash#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Nov 12, 2024
1 parent 4fb8c2f commit 296cb66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration/test_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_modify_internals
assert_healthy("http://#{addr}:#{port}")

env = Net::HTTP.get(URI("http://#{addr}:#{port}/"))
assert_match('"rack.url_scheme"=>"https"', env)
assert_match({"rack.url_scheme"=>"https"}.inspect[1..-2], env)
assert_stderr(/\[FOO\]/)

assert_clean_shutdown(pid)
Expand Down
4 changes: 2 additions & 2 deletions test/integration/test_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def test_after_request_complete
assert_stderr "worker=3 gen=0 ready"

response = http_get("http://#{addr}:#{port}/")
assert_equal "{:workers_count=>4, :live_workers_count=>4}", response.body
assert_equal({workers_count: 4, live_workers_count: 4}.inspect, response.body)

Process.kill(:TTOU, pid)
assert_stderr(/worker=3 pid=\d+ gen=0 reaped/)
Process.kill(:TTOU, pid)
assert_stderr(/worker=2 pid=\d+ gen=0 reaped/)

response = http_get("http://#{addr}:#{port}/")
assert_equal "{:workers_count=>4, :live_workers_count=>2}", response.body
assert_equal({workers_count: 4, live_workers_count: 2}.inspect, response.body)

assert_clean_shutdown(pid)
end
Expand Down

0 comments on commit 296cb66

Please sign in to comment.