From 2dedd116c95c5e675f37b053a8f09c8b3a294db6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 22 Dec 2017 02:33:48 +0000 Subject: tests: cleanup some unused variable warnings 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. --- test/unit/test_droplet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/test_droplet.rb') 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 -- cgit v1.2.3-24-ge0c7