summaryrefslogtreecommitdiffstats
path: root/spec/unit/application
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-07-28 13:12:58 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-07-28 13:12:58 -0700
commitbff817c5bea1a1b298a81d5aa4f28c2789125286 (patch)
tree9c2d93a57d68531384fb521e4449f7eb41a6aba1 /spec/unit/application
parentecca900facc6316c8479f937119e34342618257a (diff)
downloadpuppet-bff817c5bea1a1b298a81d5aa4f28c2789125286.tar.gz
puppet-bff817c5bea1a1b298a81d5aa4f28c2789125286.tar.xz
puppet-bff817c5bea1a1b298a81d5aa4f28c2789125286.zip
(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
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-xspec/unit/application/apply_spec.rb2
1 files changed, 2 insertions, 0 deletions
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)