]> source.dussan.org Git - redmine.git/commitdiff
Fix random test failure (#33953).
authorGo MAEDA <maeda@farend.jp>
Tue, 27 Sep 2022 08:23:53 +0000 (08:23 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 27 Sep 2022 08:23:53 +0000 (08:23 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21854 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_controller_test.rb

index 9ba464e67c326866da129a56d04e936cf5e4c448..e79ddda4f0e4cd82343c6508c7cbb114f5bee182 100644 (file)
@@ -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})