Workaround a test timing bug in CI for the release

This commit is contained in:
Eric Davis 2011-07-01 16:28:13 -07:00
parent 0d81314664
commit 2fab2de517
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class JournalTest < ActiveSupport::TestCase
@project = Project.generate! @project = Project.generate!
@issue = Issue.generate_for_project!(@project).reload @issue = Issue.generate_for_project!(@project).reload
start = @issue.updated_on start = @issue.updated_on
sleep(1) # TODO: massive hack to make sure the timestamps are different. switch to timecop later
assert_difference("Journal.count") do assert_difference("Journal.count") do
@issue.init_journal(@user, "A note") @issue.init_journal(@user, "A note")