Skip to content

Commit

Permalink
Made test more lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Jan 3, 2025
1 parent 9fa579b commit fb6b057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/exponential_backoff_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_aborts_directly_if_server_returns_other_error_than_429
rescue Seatsio::Exception::SeatsioException => e
assert_equal(400, e.message.code)
wait_time = Time.now.to_i - start.to_i
assert_true(wait_time < 2)
assert_true(wait_time < 5)
end
end

Expand All @@ -37,7 +37,7 @@ def test_aborts_directly_if_server_returns_429_but_0_max_retries
rescue Seatsio::Exception::RateLimitExceededException => e
assert_equal(429, e.message.code)
wait_time = Time.now.to_i - start.to_i
assert_true(wait_time < 2)
assert_true(wait_time < 5)
end
end

Expand Down

0 comments on commit fb6b057

Please sign in to comment.