From 3771f7ea582ba1fe07f0c3f5f1aff7a871aafe99 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 14 Mar 2024 09:54:43 +0100 Subject: [PATCH] Stablize ConnectionPoolTests#test_idle_timeout_configuration It flakes a lot on my machine because the timeouts are identical. --- activerecord/test/cases/connection_pool_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb index 71a00bc934d..11fccfdd2f6 100644 --- a/activerecord/test/cases/connection_pool_test.rb +++ b/activerecord/test/cases/connection_pool_test.rb @@ -280,7 +280,7 @@ module ActiveRecord idle_conn.instance_variable_set( :@idle_since, - Process.clock_gettime(Process::CLOCK_MONOTONIC) - 0.02 + Process.clock_gettime(Process::CLOCK_MONOTONIC) - 0.03 ) @pool.flush