diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-04-08 16:06:31 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-04-11 15:34:40 -0700 |
commit | 4b73d41be6436e3eb92d86340aed08dbce1f63cf (patch) | |
tree | 1b3f737146db20c240da789291116670d31b5d0c | |
parent | 229d11118f06d7daa7ba3fe6278268cbd1a12534 (diff) | |
download | puppet-4b73d41be6436e3eb92d86340aed08dbce1f63cf.tar.gz puppet-4b73d41be6436e3eb92d86340aed08dbce1f63cf.tar.xz puppet-4b73d41be6436e3eb92d86340aed08dbce1f63cf.zip |
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@puppetlabs.com>
-rw-r--r-- | spec/unit/indirector/facts/inventory_active_record_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/indirector/facts/inventory_active_record_spec.rb b/spec/unit/indirector/facts/inventory_active_record_spec.rb index 9558abde2..538aa5f47 100644 --- a/spec/unit/indirector/facts/inventory_active_record_spec.rb +++ b/spec/unit/indirector/facts/inventory_active_record_spec.rb @@ -29,6 +29,7 @@ describe "Puppet::Node::Facts::InventoryActiveRecord", :if => (Puppet.features.r after :each do Puppet::Rails.teardown + ActiveRecord::Base.remove_connection end describe "#save" do |