summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-11-29 16:54:49 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-11-29 16:54:49 +0000
commit7658997150b80f989b1c4803d1576cd8db9947f3 (patch)
tree606fd7319fc9101c669d5765fd629171669f39af
parent018d89bf8ac3b0f6d9f545a0aeb8cc5c3bbec56e (diff)
downloadredmine-7658997150b80f989b1c4803d1576cd8db9947f3.tar.gz
redmine-7658997150b80f989b1c4803d1576cd8db9947f3.zip
Fixes random test failure in DestroyProjectsJobTest due to unsorted @projects (#41901).
Patch by Katsuya HIDAKA (user:hidakatsuya) git-svn-id: https://svn.redmine.org/redmine/trunk@23329 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/jobs/destroy_projects_job_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/jobs/destroy_projects_job_test.rb b/test/unit/jobs/destroy_projects_job_test.rb
index ed06f0896..01a83fc03 100644
--- a/test/unit/jobs/destroy_projects_job_test.rb
+++ b/test/unit/jobs/destroy_projects_job_test.rb
@@ -23,7 +23,7 @@ class DestroyProjectsJobTest < ActiveJob::TestCase
fixtures :users, :projects, :email_addresses
setup do
- @projects = Project.where(id: [1, 2]).to_a
+ @projects = Project.where(id: [1, 2]).order(:id).to_a
@user = User.find_by_admin true
ActionMailer::Base.deliveries.clear
end