From: Marius Balteanu Date: Sun, 17 Dec 2023 03:13:02 +0000 (+0000) Subject: Backport fix of random failing integration test for plugin routes to 5.1-stable branc... X-Git-Tag: 5.1.2~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41f774018059582820484a95b2273470ccb8f349;p=redmine.git Backport fix of random failing integration test for plugin routes to 5.1-stable branch (#39864). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22521 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/routing/plugins_test.rb b/test/integration/routing/plugins_test.rb index 155dd7af4..b6397de99 100644 --- a/test/integration/routing/plugins_test.rb +++ b/test/integration/routing/plugins_test.rb @@ -21,6 +21,7 @@ require File.expand_path('../../test_helper', __dir__) class RoutingPluginsTest < Redmine::RoutingTest setup do + @original_plugin_dir = Redmine::PluginLoader.directory @tmp_plugins_path = Rails.root.join('tmp/test/plugins') @setup_plugin_paths = [] @@ -61,6 +62,9 @@ class RoutingPluginsTest < Redmine::RoutingTest teardown do FileUtils.rm_rf @tmp_plugins_path + + Redmine::Plugin.clear + Redmine::PluginLoader.directory = @original_plugin_dir Redmine::PluginLoader.load RedmineApp::Application.instance.routes_reloader.reload! end