Skip to content

Commit

Permalink
Merge pull request #3633 from 3scale/fix_test
Browse files Browse the repository at this point in the history
[test] more precise time calculations
  • Loading branch information
akostadinov authored Nov 21, 2023
2 parents f6b8949 + b852a29 commit 14014e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/application_keys_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ def test_regenerate_key
@application.reload
expected_updated_at = @application.updated_at + 2.hours

travel_to(2.hours.from_now) do
travel_to(expected_updated_at) do
@application_keys.regenerate(key)
end
assert_in_delta expected_updated_at, @application.updated_at, 1.second

assert_in_delta expected_updated_at, @application.updated_at, 1.second
end

test 'Value can include special characters as defined in the RFC 6749' do
Expand Down

0 comments on commit 14014e8

Please sign in to comment.