From 88ee2d46f7feb567c8885d25f45e0019c01f43a2 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Mon, 28 Apr 2014 20:20:20 -0500 Subject: [PATCH] lowering create item count in streaming batch test since it seems to be hardware dependent and Travis boxes are failing (again) --- spec/integration/rest_batch_streaming_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/integration/rest_batch_streaming_spec.rb b/spec/integration/rest_batch_streaming_spec.rb index 812cc87..cd0c073 100644 --- a/spec/integration/rest_batch_streaming_spec.rb +++ b/spec/integration/rest_batch_streaming_spec.rb @@ -27,9 +27,9 @@ 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 @@ -37,14 +37,14 @@ 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