A platform for community discussion. Free, open, simple.
DEV: correct flaky spec
Sam Saffrone89935127c3a
diff --git a/spec/components/auth/default_current_user_provider_spec.rb b/spec/components/auth/default_current_user_provider_spec.rbindex c5cd6966416..5495d4e46dc 100644--- a/spec/components/auth/default_current_user_provider_spec.rb+++ b/spec/components/auth/default_current_user_provider_spec.rb@@ -389,7 +389,10 @@ describe Auth::DefaultCurrentUserProvider doenddescribe "#current_user" do- fab!(:user) { Fabricate(:user) }+ # careful using fab! here is can lead to an erratic test+ # we want a distinct user object per test so last_seen_at is+ # handled correctly+ let!(:user) { Fabricate(:user) }let(:unhashed_token) donew_provider = provider('/')