Skip to content

Commit

Permalink
Fix randomly failing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Feb 7, 2024
1 parent 2123cbc commit 199e8c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/4_2_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
env:
RAILS_ENV: test
working-directory: redmine
run: bundle exec rails redmine:plugins:test NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0"
run: bundle exec rails redmine:plugins:test NAME=${{ env.PLUGIN_NAME }} RUBYOPT="-W0" --trace

- name: Run uninstall test
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def custom_fields_upgrade

changed_project_ids = array_difference(@previous_project_ids, @custom_field.project_ids)

Project.where(id: changed_project_ids).find_each do |project|
Project.where(id: changed_project_ids).each do |project|
journal_detail = JournalDetail.new(
:property => :custom_fields,
:prop_key => :custom_fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def journalized_trackers_upgrade

changed_project_ids = array_difference(@previous_project_ids, @tracker.project_ids)

Project.where(id: changed_project_ids).find_each do |project|
Project.where(id: changed_project_ids).each do |project|
journal_detail = JournalDetail.new(
:property => :trackers,
:prop_key => :trackers
Expand Down

0 comments on commit 199e8c8

Please sign in to comment.