diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-11-29 16:54:49 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-11-29 16:54:49 +0000 |
commit | 7658997150b80f989b1c4803d1576cd8db9947f3 (patch) | |
tree | 606fd7319fc9101c669d5765fd629171669f39af /test/unit/jobs/destroy_projects_job_test.rb | |
parent | 018d89bf8ac3b0f6d9f545a0aeb8cc5c3bbec56e (diff) | |
download | redmine-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
Diffstat (limited to 'test/unit/jobs/destroy_projects_job_test.rb')
-rw-r--r-- | test/unit/jobs/destroy_projects_job_test.rb | 2 |
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 |