Test configurable expiry time
This commit is contained in:
parent
9596b87899
commit
87d1e9bd0c
1 changed files with 2 additions and 1 deletions
|
@ -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' {
|
||||||
|
|
Loading…
Add table
Reference in a new issue