Test stabilization: Fixed timing issue in time comparsion by allowing 1 second off.
This commit is contained in:
parent
04e1dc78bd
commit
fb697f6ae7
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ class UserRefObjectTouchTest < ActiveSupport::TestCase
|
|||
|
||||
# check if organization has been touched
|
||||
organization1 = Organization.find(organization1.id)
|
||||
assert_equal(organization1_updated_at.to_s, ticket.updated_at.to_s)
|
||||
assert_in_delta(organization1_updated_at, ticket.updated_at, 1.second)
|
||||
|
||||
travel 4.seconds
|
||||
|
||||
|
|
Loading…
Reference in a new issue