MenuManagerTest randomly fails (#36241).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21297 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-11-29 13:50:47 +00:00
parent 153a4e2606
commit be61fe9626

View File

@@ -102,7 +102,7 @@ class MenuManagerTest < Redmine::IntegrationTest
def test_cross_project_menu_should_hide_item_if_module_is_not_enabled_for_any_project def test_cross_project_menu_should_hide_item_if_module_is_not_enabled_for_any_project
user = User.find_by_login('dlopper') user = User.find_by_login('dlopper')
assert_equal [1, 3, 4, 6], Project.visible(user).ids assert_equal [1, 3, 4, 6], Project.visible(user).ids.sort
# gantt and news are not enabled for any visible project # gantt and news are not enabled for any visible project
Project.find(1).enabled_module_names = %w(issue_tracking calendar) Project.find(1).enabled_module_names = %w(issue_tracking calendar)