Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Aug 22, 2023
1 parent daa55bd commit e165174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def responsive?
return false if @server_thread&.join(0)

res = Net::HTTP.start(host, port, read_timeout: 2, max_retries: 0) { |h| h.get("/__identify__") }
return res.body == app.object_id.to_s if res.is_a?(Net::HTTPSuccess) || res.is_a?(Net::HTTPRedirection)
res.body == app.object_id.to_s if res.is_a?(Net::HTTPSuccess) || res.is_a?(Net::HTTPRedirection)
rescue SystemCallError, Net::ReadTimeout
false
end
Expand Down

0 comments on commit e165174

Please sign in to comment.