Skip to content

Commit

Permalink
lowering create item count in streaming batch test since it seems to …
Browse files Browse the repository at this point in the history
…be hardware dependent and Travis boxes are failing
  • Loading branch information
maxdemarzi committed Apr 29, 2014
1 parent 05bc713 commit 84d7293
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/integration/rest_batch_streaming_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@
batch_result.last["body"]["self"].split('/').last.should == "0"
end

it "can send a 20000 get item batch" do
it "can send a 10000 get item batch" do
commands = []
20000.times do |x|
10000.times do |x|
commands << [:get_node, 0]
end
batch_result = @neo.batch *commands
batch_result.first["body"]["self"].split('/').last.should == "0"
batch_result.last["body"]["self"].split('/').last.should == "0"
end

it "can send a 20000 create item batch" do
it "can send a 10000 create item batch" do
commands = []
20000.times do |x|
10000.times do |x|
commands << [:create_node, {"name" => "Max " + x.to_s}]
end
batch_result = @neo.batch *commands
batch_result.first["body"]["data"]["name"].should == "Max 0"
batch_result.last["body"]["data"]["name"].should == "Max 19999"
batch_result.last["body"]["data"]["name"].should == "Max 9999"
end

end
Expand Down

0 comments on commit 84d7293

Please sign in to comment.