From 32eeca9c7b59c156425c6b16c0014dcdcd7fb739 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 12 Jan 2024 04:10:37 -0500 Subject: [PATCH] Refresh instance counts in spec (fixes intermittent failure) (#28698) --- spec/controllers/admin/instances_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/controllers/admin/instances_controller_spec.rb b/spec/controllers/admin/instances_controller_spec.rb index 74d69d1aaa1..e6fa0b9def2 100644 --- a/spec/controllers/admin/instances_controller_spec.rb +++ b/spec/controllers/admin/instances_controller_spec.rb @@ -12,6 +12,8 @@ RSpec.describe Admin::InstancesController do before do _account_less_popular = Fabricate(:account, domain: 'less.popular') _account_popular_other = Fabricate(:account, domain: 'popular') + Instance.refresh + sign_in current_user, scope: :user end