diff --git a/test/plugin/test_extractor.rb b/test/plugin/test_extractor.rb index 70f9d2a5b5..7f78d265bc 100644 --- a/test/plugin/test_extractor.rb +++ b/test/plugin/test_extractor.rb @@ -37,7 +37,7 @@ def create_deflate(data) def incompressible_text(size) random = Random.new(0) - size.times.map { random.rand(36).to_s(36) }.join + Array.new(size) { random.rand(36).to_s(36) }.join end sub_test_case 'decompress_gzip' do