From 951bc76ab5e6ea0f3b003dbc025b6c5e792c1cc0 Mon Sep 17 00:00:00 2001 From: Adrianna Chang Date: Fri, 3 Feb 2023 13:12:09 -0500 Subject: [PATCH] Add test for Trilogy client default timeout --- test/adapters/activerecord_trilogy_adapter_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/adapters/activerecord_trilogy_adapter_test.rb b/test/adapters/activerecord_trilogy_adapter_test.rb index 76492b89..b1d1f38e 100644 --- a/test/adapters/activerecord_trilogy_adapter_test.rb +++ b/test/adapters/activerecord_trilogy_adapter_test.rb @@ -373,6 +373,12 @@ def test_changes_timeout_when_half_open_and_configured assert_equal(2, raw_connection.write_timeout) end + def test_trilogy_default_read_timeout + client = Trilogy.new(@configuration.slice(:username, :host, :port)) + + assert_equal(0, client.read_timeout) + end + def test_circuit_open_errors_do_not_trigger_the_circuit_breaker @proxy.down do ERROR_THRESHOLD.times do