* [PATCH] Fix bad rescue statements in a couple tests
@ 2011-06-27 17:56 Jeremy Evans
2011-06-27 18:29 ` Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Evans @ 2011-06-27 17:56 UTC (permalink / raw)
To: raindrops
>From 73e34bcd4e0cb29e02b3e2e3bbaa5caee04516fb Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@jeremyevans.net>
Date: Mon, 27 Jun 2011 10:36:21 -0700
Subject: [PATCH] Fix bad rescue statements in a couple tests
---
test/test_aggregate_pmq.rb | 2 +-
test/test_last_data_recv_unicorn.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/test_aggregate_pmq.rb b/test/test_aggregate_pmq.rb
index 9278cba..7748b4f 100644
--- a/test/test_aggregate_pmq.rb
+++ b/test/test_aggregate_pmq.rb
@@ -2,7 +2,7 @@ require "test/unit"
require "raindrops"
pmq = begin
Raindrops::Aggregate::PMQ
-rescue => LoadError
+rescue LoadError => e
warn "W: #{e} skipping test"
false
end
diff --git a/test/test_last_data_recv_unicorn.rb b/test/test_last_data_recv_unicorn.rb
index 38bdd11..7f06c85 100644
--- a/test/test_last_data_recv_unicorn.rb
+++ b/test/test_last_data_recv_unicorn.rb
@@ -6,7 +6,7 @@ require "net/http"
$stderr.sync = $stdout.sync = true
pmq = begin
Raindrops::Aggregate::PMQ
-rescue => LoadError
+rescue LoadError => e
warn "W: #{e} skipping test"
false
end
--
1.7.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix bad rescue statements in a couple tests
2011-06-27 17:56 [PATCH] Fix bad rescue statements in a couple tests Jeremy Evans
@ 2011-06-27 18:29 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2011-06-27 18:29 UTC (permalink / raw)
To: raindrops
Oops, thanks Jeremy!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-27 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 17:56 [PATCH] Fix bad rescue statements in a couple tests Jeremy Evans
2011-06-27 18:29 ` Eric Wong
raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhbt.net/raindrops-public
git clone --mirror http://ou63pmih66umazou.onion/raindrops-public
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 raindrops-public raindrops-public/ https://yhbt.net/raindrops-public \
raindrops-public@yhbt.net raindrops-public@bogomips.org raindrops@librelist.org raindrops@librelist.com
public-inbox-index raindrops-public
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops
note: .onion URLs require Tor: https://www.torproject.org/
code repositories for the project(s) associated with this inbox:
../../../raindrops.git
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git