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 (again)
  • Loading branch information
maxdemarzi committed Apr 29, 2014
1 parent 84d7293 commit 88ee2d4
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 10000 get item batch" do
it "can send a 70000 get item batch" do
commands = []
10000.times do |x|
70000.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 10000 create item batch" do
it "can send a 5000 create item batch" do
commands = []
10000.times do |x|
5000.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 9999"
batch_result.last["body"]["data"]["name"].should == "Max 4999"
end

end
Expand Down

0 comments on commit 88ee2d4

Please sign in to comment.