test/functional_connection.rb in ruote-couch-2.1.11 vs test/functional_connection.rb in ruote-couch-2.2.0
- old
+ new
@@ -39,21 +39,36 @@
couch = Rufus::Jig::Couch.new(_couch_url)
%w[
configurations errors expressions msgs schedules variables workitems
].each do |type|
- couch.delete("/test_ruote_#{type}")
+
+ count = 0
+
+ begin
+
+ count = count + 1
+ couch.delete("/test_ruote_#{type}")
+
+ rescue Rufus::Jig::TimeoutError => te
+ retry unless count > 1
+ raise te
+ end
end
+
puts "(purged all /test_ruote_xxx databases)"
$_RUOTE_COUCH_CLEANED = true
end
def new_storage (opts)
opts ||= {}
- Ruote::Couch::CouchStorage.new(
+ #Ruote::Couch::Storage.new(
+ # _couch_url,
+ # opts.merge!('couch_prefix' => 'test', :basic_auth => %w[ admin admin ]))
+ Ruote::Couch::Storage.new(
_couch_url,
- opts.merge!('couch_prefix' => 'test', :basic_auth => %w[ admin admin ]))
+ opts.merge!('couch_prefix' => 'test'))
end