Project

General

Profile

Patch #41901 ยป 0001-Fix-random-test-failure-in-DestroyProjectsJobTest-due-to-unsorted-projects.patch

Katsuya HIDAKA, 2024-11-29 16:30

View differences:

test/unit/jobs/destroy_projects_job_test.rb
23 23
  fixtures :users, :projects, :email_addresses
24 24

  
25 25
  setup do
26
    @projects = Project.where(id: [1, 2]).to_a
26
    @projects = Project.where(id: [1, 2]).order(:id).to_a
27 27
    @user = User.find_by_admin true
28 28
    ActionMailer::Base.deliveries.clear
29 29
  end
    (1-1/1)