Skip to content

Commit 6276984

Browse files
committed
Rescue LoadError
1 parent a115924 commit 6276984

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Rakefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace :test do
6565
puts "Running tests against hiredis v#{Hiredis::VERSION}"
6666

6767
Cutest.run(Dir["./test/**/*_test.rb"])
68-
rescue
68+
rescue LoadError
6969
puts "Skipping tests against hiredis"
7070
end
7171
end
@@ -87,9 +87,7 @@ namespace :test do
8787

8888
threaded_tests = ['./test/thread_safety_test.rb']
8989
Cutest.run(Dir['./test/**/*_test.rb'] - threaded_tests)
90-
rescue Exception => e
91-
puts e
92-
puts e.backtrace.join("\n")
90+
rescue LoadError
9391
puts "Skipping tests against em-synchrony"
9492
end
9593
end

0 commit comments

Comments
 (0)