diff options
author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-07-28 13:12:58 -0700 |
---|---|---|
committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-07-28 13:12:58 -0700 |
commit | bff817c5bea1a1b298a81d5aa4f28c2789125286 (patch) | |
tree | 9c2d93a57d68531384fb521e4449f7eb41a6aba1 /spec/unit/application | |
parent | ecca900facc6316c8479f937119e34342618257a (diff) | |
download | puppet-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-x | spec/unit/application/apply_spec.rb | 2 |
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) |