We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff7ce6 commit 7dacd6bCopy full SHA for 7dacd6b
spec/uploadcare/clients/upload_client_spec.rb
@@ -446,6 +446,7 @@ module Uploadcare
446
before do
447
stub_request(:put, presigned_url)
448
.to_return(status: 500, body: 'Internal Server Error')
449
+ allow(client).to receive(:sleep)
450
end
451
452
it 'retries on failure' do
@@ -460,6 +461,7 @@ module Uploadcare
460
461
# First two attempts fail, third succeeds
462
463
.to_return({ status: 500 }, { status: 500 }, { status: 200 })
464
465
466
467
it 'succeeds after retries' do
0 commit comments