mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Tests could get stucked in infinite loop if it fails to resolve IP of a hostname.
This commit is contained in:
@@ -46,6 +46,9 @@ describe UserAvatar do
|
||||
|
||||
describe 'when avatar url returns an invalid status code' do
|
||||
it 'should not do anything' do
|
||||
stub_request(:get, "http://thisfakesomething.something.com/")
|
||||
.to_return(status: 500, body: "", headers: {})
|
||||
|
||||
url = "http://thisfakesomething.something.com/"
|
||||
|
||||
UserAvatar.import_url_for_user(url, user)
|
||||
|
||||
Reference in New Issue
Block a user