From 59686c1cb87970cf61aae826361937fc82cc87b9 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 26 Jul 2022 01:28:53 +0200 Subject: [PATCH] DEV: Fix a flaky FinalDestination spec (#17655) --- spec/lib/final_destination_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/final_destination_spec.rb b/spec/lib/final_destination_spec.rb index 89a69d26080..bd64fb508ef 100644 --- a/spec/lib/final_destination_spec.rb +++ b/spec/lib/final_destination_spec.rb @@ -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