Permalink
Browse files

Merge pull request #170 from jarib/test_retries

Set options for thrift_client in the tests
  • Loading branch information...
natemueller committed Oct 26, 2012
2 parents fd7b087 + ca25b77 commit 0c4ca11040b7724dd5c50ea49d8b2b030123c06b
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/test_helper.rb
View
@@ -5,7 +5,11 @@
begin; require 'ruby-debug'; rescue LoadError; end
begin
- @test_client = Cassandra.new('Twitter', 'localhost:9160', {:exception_classes => []})
+ @test_client = Cassandra.new('Twitter', 'localhost:9160', :thrift_client_options => {
+ :retries => 3,
+ :timeout => 5,
+ :connect_timeout => 1
+ })
rescue Thrift::TransportException => e
#FIXME Make server automatically start if not running
if e.message =~ /Could not connect/

0 comments on commit 0c4ca11

Please sign in to comment.