From cdd43825cee233af478d807cddda346e9d1fe142 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Wed, 7 Jul 2010 10:30:15 -0700 Subject: [#4114] Fix failures in the unit tests The initial commit changed the name of a method (close -> close_all) and changed the way the array log destination worked before we saw that the unit tests were using it differently. --- test/util/log.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/util') diff --git a/test/util/log.rb b/test/util/log.rb index 00db10e61..b28d601e9 100755 --- a/test/util/log.rb +++ b/test/util/log.rb @@ -12,14 +12,13 @@ class TestLog < Test::Unit::TestCase def setup super @oldloglevel = Puppet::Util::Log.level - Puppet::Util::Log.close + Puppet::Util::Log.close_all end def teardown super - Puppet::Util::Log.close + Puppet::Util::Log.close_all Puppet::Util::Log.level = @oldloglevel - Puppet::Util::Log.newdestination(:console) end def getlevels @@ -57,7 +56,7 @@ class TestLog < Test::Unit::TestCase } msgs = mkmsgs(levels) assert(msgs.length == levels.length) - Puppet::Util::Log.close + Puppet::Util::Log.close_all count = 0 assert(FileTest.exists?(logfile), "Did not create logfile") -- cgit