mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:09:00 +08:00
DEV: Fix a flaky FinalDestination spec (#17655)
This commit is contained in:
parent
a70b3dcc44
commit
59686c1cb8
|
@ -457,11 +457,12 @@ describe FinalDestination do
|
|||
subject(:get) { fd.get {} }
|
||||
|
||||
before do
|
||||
described_class.clear_https_cache!("wikipedia.com")
|
||||
fd.stubs(:safe_session).raises(Timeout::Error)
|
||||
end
|
||||
|
||||
it "logs the exception" do
|
||||
Rails.logger.expects(:warn).with("default: FinalDestination could not resolve URL (timeout): https://wikipedia.com")
|
||||
Rails.logger.expects(:warn).with("default: FinalDestination could not resolve URL (timeout): http://wikipedia.com")
|
||||
get
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user