mastodon/spec
Eugen Rochko fd8145d232
Fix connect timeout not being enforced ()
* Fix connect timeout not being enforced

The loop was catching the timeout exception that should stop execution, so the next IP would no longer be within a timed block, which led to requests taking much longer than 10 seconds.

* Use timeout on each IP attempt, but limit to 2 attempts

* Fix code style issue

* Do not break Request#perform if no block given

* Update method stub in spec for Request

* Move timeout inside the begin/rescue block

* Use Resolv::DNS with timeout of 1 to get IP addresses

* Update Request spec to stub Resolv::DNS instead of Addrinfo

* Fix Resolve::DNS stubs in Request spec
..
controllers Optimize the process of following someone ()
fabricators Extract counters from accounts table to account_stats table ()
features rubocop issues - Cleaning up ()
fixtures Slightly reduce RAM usage ()
helpers Revert Font Awesome 5 upgrade ()
lib Fix connect timeout not being enforced ()
mailers Account archive download ()
models Extract counters from accounts table to account_stats table ()
policies
presenters Isolate each specs for cache store ()
requests Use raw status code on have_http_status ()
routing
services Ignore JSON-LD profile in mime type comparison ()
support Remove empty strings ()
validators Add a spec for UniqueUsernameValidator ()
views Replace SVG asset with Custom mascot ()
workers Lists ()
rails_helper.rb rubocop issues - Cleaning up ()
spec_helper.rb Disable simplecov on CircleCI ()