Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set options for thrift_client in the tests #170

Merged
merged 2 commits into from Oct 26, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/test_helper.rb
Expand Up @@ -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/
Expand Down