Test stabilization: Fixed timing issue in time comparsion by allowing 1 second off.

This commit is contained in:
Thorsten Eckel 2018-08-23 15:14:59 +02:00
parent 04e1dc78bd
commit fb697f6ae7

View file

@ -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