From bff817c5bea1a1b298a81d5aa4f28c2789125286 Mon Sep 17 00:00:00 2001 From: Pieter van de Bruggen Date: Thu, 28 Jul 2011 13:12:58 -0700 Subject: (Maint.) Fix spec failures related to leaking state. The `node clean` code has introduced a systematic change in state which is not uniformly protected against by the tests. As these order dependent failures arise, we should refactor the tests to be more robust. Reviewed-By: Matt Robinson --- spec/unit/application/apply_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index c9555157c..489f4db36 100755 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -134,7 +134,9 @@ describe Puppet::Application::Apply do Puppet[:postrun_command] = '' Puppet::Node::Facts.indirection.terminus_class = :memory + Puppet::Node::Facts.indirection.cache_class = :memory Puppet::Node.indirection.terminus_class = :memory + Puppet::Node.indirection.cache_class = :memory @facts = Puppet::Node::Facts.new(Puppet[:node_name_value]) Puppet::Node::Facts.indirection.save(@facts) -- cgit