Skip to content

Commit

Permalink
Add test for Trilogy client default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianna-chang-shopify committed Feb 7, 2023
1 parent 6efa26e commit 951bc76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/adapters/activerecord_trilogy_adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 951bc76

Please sign in to comment.