Skip to content

Commit

Permalink
Improving restart test
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Jul 14, 2010
1 parent 97c996f commit 83fa931
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/couchrest/core/couchrest_spec.rb
Expand Up @@ -27,8 +27,14 @@
end

it "should restart" do
# Don't bother actually restarting as it causes problems in CouchDB 1.0
@cr.respond_to?('restart!').should be_true # @cr.restart! ##
@cr.restart!
begin
@cr.info
rescue
# Give the couchdb time to restart
sleep 0.2
retry
end
end

it "should provide one-time access to uuids" do
Expand Down

0 comments on commit 83fa931

Please sign in to comment.