Test configurable expiry time

This commit is contained in:
Michael Aquilina 2019-07-21 21:59:14 +01:00
parent 9596b87899
commit 87d1e9bd0c
No known key found for this signature in database
GPG key ID: 636066730B056BD1

View file

@ -82,13 +82,14 @@
AUTO_COMMAND="f bar -r" AUTO_COMMAND="f bar -r"
AUTO_COMMAND_FULL="foo bar -r" AUTO_COMMAND_FULL="foo bar -r"
AUTO_COMMAND_START=11080 AUTO_COMMAND_START=11080
AUTO_NOTIFY_EXPIRE_TIME=15000
run _auto_notify_send run _auto_notify_send
assert $state equals 0 assert $state equals 0
assert "$lines[1]" same_as 'Notification Title: "f bar -r" Completed' assert "$lines[1]" same_as 'Notification Title: "f bar -r" Completed'
assert "$lines[2]" same_as "Notification Body: Total time: 20 seconds" assert "$lines[2]" same_as "Notification Body: Total time: 20 seconds"
assert "$lines[3]" same_as "Exit code: 0" 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' { @test 'auto-notify-send sends notification on MacOSX' {