diff options
| author | Luke Kanies <luke@madstop.com> | 2005-08-04 18:54:47 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-08-04 18:54:47 +0000 |
| commit | 77e1cf050e8a4cf82925d3d86cc4dc2cd8f4ea58 (patch) | |
| tree | 9dce240f1fe61532c5724da9ba85b6bf7aa5c44f /test | |
| parent | 9c7c71ccd8631c0dce65e91380704338a9dab219 (diff) | |
| download | puppet-77e1cf050e8a4cf82925d3d86cc4dc2cd8f4ea58.tar.gz puppet-77e1cf050e8a4cf82925d3d86cc4dc2cd8f4ea58.tar.xz puppet-77e1cf050e8a4cf82925d3d86cc4dc2cd8f4ea58.zip | |
fixing verbose output to be better and easier to manage
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@499 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rw-r--r-- | test/other/tc_transactions.rb | 50 |
1 files changed, 34 insertions, 16 deletions
diff --git a/test/other/tc_transactions.rb b/test/other/tc_transactions.rb index 3383b3b34..fc849c04b 100644 --- a/test/other/tc_transactions.rb +++ b/test/other/tc_transactions.rb @@ -193,20 +193,29 @@ class TestTransactions < Test::Unit::TestCase } # this should cause a restart of the service + events = nil assert_nothing_raised() { - transaction.evaluate + events = transaction.evaluate } - fakevent = Puppet::Event.new( - :event => :ALL_EVENTS, - :object => self, - :transaction => transaction, - :message => "yay" - ) + event = events.pop + + assert(event) + + #fakevent = nil + #assert_nothing_raised { + # fakevent = Puppet::Event.new( + # :event => :ALL_EVENTS, + # :object => file, + # :state => file.state(:mode), + # :transaction => transaction, + # :message => "yay" + # ) + #} sub = nil assert_nothing_raised() { - sub = file.subscribers?(fakevent) + sub = file.subscribers?(event) } assert(sub) @@ -256,20 +265,29 @@ class TestTransactions < Test::Unit::TestCase } # this should cause a restart of the service + events = nil assert_nothing_raised() { - transaction.evaluate + events = transaction.evaluate } - fakevent = Puppet::Event.new( - :event => :ALL_EVENTS, - :object => self, - :transaction => transaction, - :message => "yay" - ) + event = events.pop + + assert(event) + + #fakevent = nil + #assert_nothing_raised { + # fakevent = Puppet::Event.new( + # :event => :ALL_EVENTS, + # :object => file, + # :state => file.state(:mode), + # :transaction => transaction, + # :message => "yay" + # ) + #} sub = nil assert_nothing_raised() { - sub = fcomp.subscribers?(fakevent) + sub = file.subscribers?(event) } assert(sub) |
