Sha256: bc87f426444a0973a0e727da7766fb96f1346799ffe0f4d5bbcb43b3f9878e50

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

require 'bundler/setup'
require 'riak'
require 'riak/test_server'

OUTER = 100
INNER = 1000

ts = Riak::TestServer.new(:bin_dir => "/usr/local/bin",
                          :temp_dir => "./rel")
$expect_verbose = true
ts.prepare!
ts.start

c = Riak::Client.new(:port => 9000, :http_backend => :Excon)

OUTER.times do
  warn "NOT STARTED, WTF?" unless ts.started?
  INNER.times do    
    unless rand > 0.8
      c['test'].new.tap do |o|
        o.data = "Some test data" * rand(10)
        o.content_type = "text/plain"
        o.store
      end
      print "."
    end
  end
  puts

  ts.recycle
end

ts.stop
ts.cleanup
$expect_verbose = false

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riak-client-0.9.5 pkg/ts.rb