aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_alert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_mauve_alert.rb')
-rw-r--r--test/tc_mauve_alert.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/tc_mauve_alert.rb b/test/tc_mauve_alert.rb
index f85236e..a9aef5f 100644
--- a/test/tc_mauve_alert.rb
+++ b/test/tc_mauve_alert.rb
@@ -109,12 +109,16 @@ EOF
)
alert.raise!
+ logger_pop
+
assert(alert.raised?)
#
# This acknowledges an alert for 3 mins.
#
alert.acknowledge!(person, Time.now + 3.minutes)
+ logger_pop
+
assert_equal(person.username, alert.acknowledged_by)
assert_equal(Time.now, alert.acknowledged_at)
assert_equal(Time.now + 3.minutes, alert.will_unacknowledge_at)
@@ -132,6 +136,8 @@ EOF
# The alert should unacknowledge itself.
#
alert.poll
+ logger_pop
+
assert(!alert.acknowledged?)
end