Skip to content

Commit a7b87da

Browse files
committed
search_with_retry should also handle FASlowdownError, not just FAStatusError
1 parent 940f14d commit a7b87da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/search_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def search_with_retry(args)
3030

3131
begin
3232
@fa.search(args)
33-
rescue FAStatusError => e
33+
rescue [FAStatusError, FASlowdownError] => e
3434
raise unless (retries += 1) <= 5
3535

36-
puts "FAStatusError on Search: #{e}, retry #{retries} in #{wait_between_tries} second(s)..."
36+
puts "FA error on Search: #{e}, retry #{retries} in #{wait_between_tries} second(s)..."
3737
sleep(wait_between_tries)
3838
retry
3939
end

0 commit comments

Comments
 (0)