spec/integration/riak/threading_spec.rb in riak-client-2.0.0 vs spec/integration/riak/threading_spec.rb in riak-client-2.1.0
- old
+ new
@@ -60,11 +60,11 @@
describe opts.inspect do
before do
@bucket = random_bucket 'threading'
end
- it 'should get in parallel' do
+ it 'gets in parallel' do
data = "the gun is good"
ro = @bucket.new('test')
ro.content_type = "application/json"
ro.data = [data]
ro.store
@@ -74,11 +74,11 @@
expect(x.content_type).to eq("application/json")
expect(x.data).to eq([data])
end
end
- it 'should put in parallel' do
+ it 'puts in parallel' do
data = "the tabernacle is indestructible and everlasting"
n = 10
threads n, :synchronize => true do |i|
x = @bucket.new("test-#{i}")
@@ -95,11 +95,11 @@
end
# This is a 1.0+ spec because putting with the same client ID
# will not create siblings on 0.14 in the same way. This will
# also likely fail for nodes with vnode_vclocks = false.
- it 'should put conflicts in parallel' do
+ it 'puts conflicts in parallel' do
@bucket.allow_mult = true
expect(@bucket.allow_mult).to eq(true)
init = @bucket.new('test')
init.content_type = "application/json"
@@ -121,10 +121,10 @@
expect(read.siblings.map do |sibling|
sibling.data.first
end.to_set).to eq((0...n).to_set)
end
- it 'should list-keys and get in parallel', :slow => true do
+ it 'lists-keys and gets in parallel', :slow => true do
count = 100
threads = 2
# Create items
count.times do |i|