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 3, 2023
1 parent 221bef6 commit a15d1cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/adapters/trilogy_adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ 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 a15d1cd

Please sign in to comment.