diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb
index <HASH>..<HASH> 100644
--- a/activerecord/test/cases/locking_test.rb
+++ b/activerecord/test/cases/locking_test.rb
@@ -406,7 +406,7 @@ class OptimisticLockingTest < ActiveRecord::TestCase
     assert_equal 0, car.lock_version
 
     previously_car_updated_at = car.updated_at
-    travel(1.second) do
+    travel(2.second) do
       Wheel.create!(wheelable: car)
     end
 
@@ -422,7 +422,7 @@ class OptimisticLockingTest < ActiveRecord::TestCase
     assert_equal 2, car.lock_version
 
     previously_car_updated_at = car.updated_at
-    travel(1.second) do
+    travel(2.second) do
       car.wheels.first.destroy!
     end
Fix `test_counter_cache_with_touch_and_lock_version` failure

Looks like it is failed due to datetime rounding. Related #<I>.

<URL>