Skip to content

Commit

Permalink
reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jun 5, 2012
1 parent 0cf2222 commit 31b4867
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 118 deletions.
19 changes: 11 additions & 8 deletions lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,16 +404,19 @@ def batch(*args)
Array(args).each_with_index do |c,i|
batch << {:id => i}.merge(get_batch(c))
end
options = { :body => batch.to_json,
:headers => {'Content-Type' => 'application/json'
# Seeing connection reset by peer errors
# and timeouts.
#, 'Accept' => 'application/json;stream=true'
},
:write_timeout => 600 }
options = { :body => batch.to_json, :headers => {'Content-Type' => 'application/json', 'Accept' => 'application/json;stream=true'} }
post("/batch", options)
end


def batch_not_streaming(*args)
batch = []
Array(args).each_with_index do |c,i|
batch << {:id => i}.merge(get_batch(c))
end
options = { :body => batch.to_json, :headers => {'Content-Type' => 'application/json'} }
post("/batch", options)
end

# For testing (use a separate neo4j instance)
# call this before each test or spec
def clean_database(sanity_check = "not_really")
Expand Down
110 changes: 0 additions & 110 deletions spec/integration/streaming_spec.rb

This file was deleted.

0 comments on commit 31b4867

Please sign in to comment.