diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-05-31 10:34:14 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-05-31 10:34:14 -0700 |
| commit | 2f8bc2688ee5a612e5a7f6381ba181f49857cc03 (patch) | |
| tree | dd1d9dbd1d8c013a2ae5db02142202d17b193291 /spec/unit | |
| parent | 9834dcdd831092464143700010ae73544eea42e8 (diff) | |
| download | puppet-2f8bc2688ee5a612e5a7f6381ba181f49857cc03.tar.gz puppet-2f8bc2688ee5a612e5a7f6381ba181f49857cc03.tar.xz puppet-2f8bc2688ee5a612e5a7f6381ba181f49857cc03.zip | |
maint: Fix order dependent test failure
When running spec/unit/network/rights_spec.rb prior to
spec/unit/network/authstore_spec.rb, test failures occur due to the
AuthStore storing Declarations in current thread state. This is a
temporary fix (explicitly clearing thread state for each test run) until
the AuthStore can be modified to not rely on thread state. This commit
is a follow up to 9834dcdd.
Paired-with: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/network/authstore_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/network/authstore_spec.rb b/spec/unit/network/authstore_spec.rb index d5ff42d6e..32ce1930f 100755 --- a/spec/unit/network/authstore_spec.rb +++ b/spec/unit/network/authstore_spec.rb @@ -6,6 +6,7 @@ require 'puppet/network/authconfig' describe Puppet::Network::AuthStore do before :each do @authstore = Puppet::Network::AuthStore.new + @authstore.reset_interpolation end describe "when checking if the acl has some entries" do |
