Skip to content

Commit

Permalink
Fix random JRuby test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Nov 14, 2023
1 parent bd72278 commit 6efa69a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gems/aws-sdk-s3/spec/object/upload_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ module S3
end

it 'reports progress for multipart uploads' do
thread = double(value: nil)
allow(thread).to receive(:abort_on_exception=)
allow(Thread).to receive(:new).and_yield.and_return(thread)

client.stub_responses(:create_multipart_upload, upload_id: 'id')
client.stub_responses(:complete_multipart_upload)
expect(client).to receive(:upload_part).exactly(24).times do |args|
Expand Down

0 comments on commit 6efa69a

Please sign in to comment.