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 4d86ebd commit 234f1f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/couchrest/couchrest_spec.rb
Expand Up @@ -28,7 +28,13 @@

it "should restart" do
@cr.restart!
sleep 5 # sleep while we wait for CouchDB > 1.0 to come back up!
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 234f1f4

Please sign in to comment.