about summary refs log tree commit homepage
path: root/test/unit/test_droplet.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-12-22 02:33:48 +0000
committerEric Wong <e@80x24.org>2017-12-22 03:14:34 +0000
commit2dedd116c95c5e675f37b053a8f09c8b3a294db6 (patch)
tree122d20722a6b268ea1fa1a1f23d9a32e93c0df36 /test/unit/test_droplet.rb
parent30e3c6abe542c6a9f5955e1d65896a0c3bab534f (diff)
downloadunicorn-2dedd116c95c5e675f37b053a8f09c8b3a294db6.tar.gz
Add a new "check-warnings" target to the GNUmakefile to make
checking for this easier.  Warnings aren't fatal, and newer
versions of Ruby tend to increase warnings.
Diffstat (limited to 'test/unit/test_droplet.rb')
-rw-r--r--test/unit/test_droplet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_droplet.rb b/test/unit/test_droplet.rb
index 73cf38c..81ad82b 100644
--- a/test/unit/test_droplet.rb
+++ b/test/unit/test_droplet.rb
@@ -4,7 +4,7 @@ require 'unicorn'
 class TestDroplet < Test::Unit::TestCase
   def test_create_many_droplets
     now = Time.now.to_i
-    tmp = (0..1024).map do |i|
+    (0..1024).each do |i|
       droplet = Unicorn::Worker.new(i)
       assert droplet.respond_to?(:tick)
       assert_equal 0, droplet.tick