Permalink
Browse files

Set thrift_client_options in the tests to get rid of intermittent Tra…

…nsportExceptions on Travis.
  • Loading branch information...
1 parent fd7b087 commit b6b332e63ac067eba7865d90713b27d5944b291e @jarib jarib committed Oct 25, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/test_helper.rb
View
6 test/test_helper.rb
@@ -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', :exception_classes => [], :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 b6b332e

Please sign in to comment.