Skip to content

Commit 6efa69a

Browse files
committed
Fix random JRuby test failure
1 parent bd72278 commit 6efa69a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gems/aws-sdk-s3/spec/object/upload_file_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ module S3
169169
end
170170

171171
it 'reports progress for multipart uploads' do
172+
thread = double(value: nil)
173+
allow(thread).to receive(:abort_on_exception=)
174+
allow(Thread).to receive(:new).and_yield.and_return(thread)
175+
172176
client.stub_responses(:create_multipart_upload, upload_id: 'id')
173177
client.stub_responses(:complete_multipart_upload)
174178
expect(client).to receive(:upload_part).exactly(24).times do |args|

0 commit comments

Comments
 (0)