From 9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Feb 2011 17:37:22 -0800 Subject: Fix Ruby 1.9.3dev warnings for i in `git ls-files '*.rb'`; do ruby -w -c $i; done --- test/exec/test_exec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/exec') diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 581d5d5..0f6b083 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -797,7 +797,6 @@ EOF def test_daemonize_redirect_fail pid_file = "#{@tmpdir}/test.pid" - log = Tempfile.new('unicorn_test_log') ucfg = Tempfile.new('unicorn_test_config') ucfg.syswrite("pid #{pid_file}\"\n") err = Tempfile.new('stderr') @@ -1040,7 +1039,7 @@ EOF lock_path = "#{Dir::tmpdir}/unicorn_test." \ "#{Unicorn::Const::DEFAULT_LISTEN}.lock" begin - lock = File.open(lock_path, File::WRONLY|File::CREAT|File::EXCL, 0600) + File.open(lock_path, File::WRONLY|File::CREAT|File::EXCL, 0600) yield rescue Errno::EEXIST lock_path = nil -- cgit v1.2.3-24-ge0c7