Issue #6771 has been updated by Daniel Pittman.
We should probably move that into the base spec_helper before and after blocks, since this is a global resource that is nice to have back in a state where the tests can work correctly, at the very least. Being able to test with a real database is ... much more helpful than tests that stub it out, since they routinely don't catch real world problems. ---------------------------------------- Bug #6771: Mysterious ActiveRecord disk I/O Error https://projects.puppetlabs.com/issues/6771 Author: Max Martin Status: Accepted Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Some of us (but not others) have been getting a mysterious failure when running the spec tests: Failures: 1) Puppet::Node::ActiveRecord should call fact_merge when a node is found Failure/Error: ar = Puppet::Node::ActiveRecord.new ActiveRecord::StatementInvalid: SQLite3::IOException: disk I/O error: CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text NOT NULL, "restype" varchar(255) NOT NULL, "host_id" integer, "source_file_id" integer, "exported" boolean, "line" integer, "updated_at" datetime, "created_at" datetime) # ./spec/../lib/puppet/rails/database/schema.rb:9:in `init' # ./spec/../lib/puppet/rails/database/schema.rb:8:in `init' # ./lib/puppet/util.rb:193:in `benchmark' # ./lib/puppet/util.rb:192:in `benchmark' # ./spec/../lib/puppet/rails/database/schema.rb:4:in `init' # ./spec/../lib/puppet/rails.rb:81:in `init' # ./spec/../lib/puppet/indirector/active_record.rb:17:in `initialize' # ./spec/unit/indirector/node/active_record_spec.rb:31:in `new' # ./spec/unit/indirector/node/active_record_spec.rb:31 Finished in 250.66 seconds 11249 examples, 1 failure, 45 pending On my machine, it could be due to some weirdness with homebrew-installed SQLite. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
