From 4ce18c7cfdde167fec46805bf96c0494788a878f Mon Sep 17 00:00:00 2001 From: Trevor Bosaw Date: Mon, 18 Nov 2024 14:59:20 -0800 Subject: [PATCH] Fixing flaky spec for sign in controller around duration log --- spec/controllers/v0/sign_in_controller_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/controllers/v0/sign_in_controller_spec.rb b/spec/controllers/v0/sign_in_controller_spec.rb index cda9b301757..a3603b2587f 100644 --- a/spec/controllers/v0/sign_in_controller_spec.rb +++ b/spec/controllers/v0/sign_in_controller_spec.rb @@ -1137,6 +1137,11 @@ before do allow(SecureRandom).to receive(:uuid).and_return(client_code) + Timecop.freeze + end + + after do + Timecop.return end shared_context 'dslogon successful callback' do