diff --git a/spec/couchrest/couchrest_spec.rb b/spec/couchrest/couchrest_spec.rb index 12a3590..706391d 100644 --- a/spec/couchrest/couchrest_spec.rb +++ b/spec/couchrest/couchrest_spec.rb @@ -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