Sha256: c50d390ac320a34a8be5af6e34156a9d463a83ab30ba001570837f3b567e64bb

Contents?: true

Size: 669 Bytes

Versions: 13

Compression:

Stored size: 669 Bytes

Contents

CASSANDRA_VERSION = ENV['CASSANDRA_VERSION'] || '0.8' unless defined?(CASSANDRA_VERSION)

require 'test/unit'
require "#{File.expand_path(File.dirname(__FILE__))}/../lib/cassandra/#{CASSANDRA_VERSION}"
begin; require 'ruby-debug'; rescue LoadError; end

begin
  @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/
    puts "*** Please start the Cassandra server by running 'rake cassandra'. ***"
    exit 1
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
sessionm-cassandra-1.1.2 test/test_helper.rb
sessionm-cassandra-1.1.1 test/test_helper.rb
sessionm-cassandra-1.1.0 test/test_helper.rb
cassandra-0.23.0 test/test_helper.rb
cassandra-0.22.0 test/test_helper.rb
cassandra-mavericks-0.21.1 test/test_helper.rb
cassandra-0.21.0 test/test_helper.rb
cassandra-0.20.0 test/test_helper.rb
cassandra-0.19.0 test/test_helper.rb
sessionm-cassandra-1.0.2 test/test_helper.rb
cassandra-0.18.0 test/test_helper.rb
sessionm-cassandra-1.0.1 test/test_helper.rb
sessionm-cassandra-1.0.0 test/test_helper.rb