[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Matt Robinson matt at puppetlabs.com
Tue May 10 08:12:06 UTC 2011


The following commit has been merged in the experimental branch:
commit 7e9707a7d7b357d9b5167c6dd0dd250ab207f6ac
Author: Matt Robinson <matt at puppetlabs.com>
Date:   Fri Apr 8 16:06:31 2011 -0700

    maint: Fix sporadic sqlite error
    
    ActiveRecord::StatementInvalid: SQLite3::IOException: disk I/O error
    
    This happened if you ran these tests in the following order since Rails
    wasn't disconnecting between tests.
    
    rspec spec/unit/indirector/facts/inventory_active_record_spec.rb
    spec/unit/indirector/node/active_record_spec.rb
    
    Paired-with: Nick Lewis <nick at puppetlabs.com>

diff --git a/spec/unit/indirector/facts/inventory_active_record_spec.rb b/spec/unit/indirector/facts/inventory_active_record_spec.rb
index 02dd495..0d55739 100755
--- a/spec/unit/indirector/facts/inventory_active_record_spec.rb
+++ b/spec/unit/indirector/facts/inventory_active_record_spec.rb
@@ -32,6 +32,7 @@ describe "Puppet::Node::Facts::InventoryActiveRecord", :if => (Puppet.features.r
 
   after :each do
     Puppet::Rails.teardown
+    ActiveRecord::Base.remove_connection
   end
 
   describe "#save" do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list