diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/other/storage.rb | 9 | ||||
| -rw-r--r-- | test/puppettest.rb | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/other/storage.rb b/test/other/storage.rb index 787fe9cdd..0a52196d6 100755 --- a/test/other/storage.rb +++ b/test/other/storage.rb @@ -29,6 +29,12 @@ class TestParsedFile < Test::Unit::TestCase Puppet::Storage.store } assert_nothing_raised { + Puppet::Storage.clear + } + assert_nothing_raised { + Puppet::Storage.load + } + assert_nothing_raised { state = Puppet::Storage.state(hash) } @@ -39,7 +45,7 @@ class TestParsedFile < Test::Unit::TestCase # are reading or writing the file at once # so we need to test that def test_multiwrite - value = {:a => :b, :c => :d} + value = {:a => :b} threads = [] 9.times { |a| threads << Thread.new { @@ -47,6 +53,7 @@ class TestParsedFile < Test::Unit::TestCase assert_nothing_raised { Puppet::Storage.load state = Puppet::Storage.state(value) + value.each { |k,v| state[k] = v } state[:e] = rand(100) Puppet::Storage.store } diff --git a/test/puppettest.rb b/test/puppettest.rb index be3ec8279..0871b5c13 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -98,6 +98,7 @@ module TestPuppet } @@tmppids.clear Puppet::Type.allclear + Puppet::Storage.clear Puppet.clear # reset all of the logs |
