diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 517aee3a8..6a4775cbd 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -495,6 +495,10 @@ class IssuesControllerTest < Test::Unit::TestCase def test_post_edit_with_attachment_only set_tmp_attachments_directory + # Delete all fixtured journals, a race condition can occur causing the wrong + # journal to get fetched in the next find. + Journal.delete_all + # anonymous user post :edit, :id => 1,