From fb697f6ae743ab8ff8f3218b41047976577ca369 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 23 Aug 2018 15:14:59 +0200 Subject: [PATCH] Test stabilization: Fixed timing issue in time comparsion by allowing 1 second off. --- test/unit/user_ref_object_touch_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/user_ref_object_touch_test.rb b/test/unit/user_ref_object_touch_test.rb index c30f284b2..efa5fa136 100644 --- a/test/unit/user_ref_object_touch_test.rb +++ b/test/unit/user_ref_object_touch_test.rb @@ -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