16007: Use incremental updates instead of materialized view for permissions
[arvados.git] / services / api / test / test_helper.rb
index 5747a85cf598965d20b563c918a304b01f9dce87..12f729e3384ac9b81107b744c6a52873c24fe3ea 100644 (file)
@@ -2,6 +2,8 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
+require 'refresh_permission_view'
+
 ENV["RAILS_ENV"] = "test"
 unless ENV["NO_COVERAGE_TEST"]
   begin
@@ -207,4 +209,5 @@ class ActionDispatch::IntegrationTest
 end
 
 # Ensure permissions are computed from the test fixtures.
-User.invalidate_permissions_cache
+refresh_permission_view
+refresh_trashed