From 42854ad2ae9e6b6e3532cf520eec3c993226114a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 27 Sep 2022 08:23:53 +0000 Subject: [PATCH] Fix random test failure (#33953). git-svn-id: https://svn.redmine.org/redmine/trunk@21854 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index 9ba464e67..e79ddda4f 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -200,7 +200,7 @@ class RepositoriesControllerTest < Redmine::RepositoryControllerTest repos.reload assert_equal false, repos.exists?(:is_default => true) - repository = repos.first + repository = repos.sort.first # rubocop:disable Style/RedundantSort @request.session[:user_id] = 2 get(:show, :params => {:id => 1}) -- 2.39.5