From 87d1e9bd0c2a212d2cd09beea0e86ecfea6ef58d Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Sun, 21 Jul 2019 21:59:14 +0100 Subject: [PATCH] Test configurable expiry time --- tests/test_auto_notify_send.zunit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_auto_notify_send.zunit b/tests/test_auto_notify_send.zunit index 59f844c..1cb14a2 100644 --- a/tests/test_auto_notify_send.zunit +++ b/tests/test_auto_notify_send.zunit @@ -82,13 +82,14 @@ AUTO_COMMAND="f bar -r" AUTO_COMMAND_FULL="foo bar -r" AUTO_COMMAND_START=11080 + AUTO_NOTIFY_EXPIRE_TIME=15000 run _auto_notify_send assert $state equals 0 assert "$lines[1]" same_as 'Notification Title: "f bar -r" Completed' assert "$lines[2]" same_as "Notification Body: Total time: 20 seconds" assert "$lines[3]" same_as "Exit code: 0" - assert "$lines[4]" same_as "--urgency=normal --expire-time=8000" + assert "$lines[4]" same_as "--urgency=normal --expire-time=15000" } @test 'auto-notify-send sends notification on MacOSX' {