diff options
| author | Luke Kanies <luke@madstop.com> | 2009-10-29 00:23:05 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 2cbd9e85259ed1742f8a54a7e5b9825d0bb79d5e (patch) | |
| tree | bafbe77d88527b56c3d10a975180a1748fa971da /test/lib | |
| parent | 6a450c51eedc38b73d79389c19b8d5e5964a9d71 (diff) | |
| download | puppet-2cbd9e85259ed1742f8a54a7e5b9825d0bb79d5e.tar.gz puppet-2cbd9e85259ed1742f8a54a7e5b9825d0bb79d5e.tar.xz puppet-2cbd9e85259ed1742f8a54a7e5b9825d0bb79d5e.zip | |
Switching transactions to callback-based events
Events are now queued as they are created, and
the queues are managed through simple interfaces,
rather than collecting events over time and
responding to them inline.
This drastically simplifies event management,
and will make moving it to a separate system
essentially trivial.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/puppettest/support/utils.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/lib/puppettest/support/utils.rb b/test/lib/puppettest/support/utils.rb index 5dd531200..405a0c54b 100644 --- a/test/lib/puppettest/support/utils.rb +++ b/test/lib/puppettest/support/utils.rb @@ -79,11 +79,9 @@ module PuppetTest::Support::Utils method = type - newevents = nil - assert_nothing_raised("Transaction %s %s failed" % [type, msg]) { - newevents = trans.send(method).reject { |e| e.nil? }.collect { |e| - e.name - } + trans.send(method) + newevents = trans.events.reject { |e| e.nil? }.collect { |e| + e.name } assert_equal(events, newevents, "Incorrect %s %s events" % [type, msg]) |
