From 7658997150b80f989b1c4803d1576cd8db9947f3 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 29 Nov 2024 16:54:49 +0000 Subject: 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 --- test/unit/jobs/destroy_projects_job_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/jobs') 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 -- cgit v1.2.3