diff options
| -rw-r--r-- | cmd/hakurei/testsuite/main.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go index 9e7455a5..cb315401 100644 --- a/cmd/hakurei/testsuite/main.go +++ b/cmd/hakurei/testsuite/main.go @@ -607,9 +607,11 @@ func main() { "Test notification", } }, nil, func(output string) bool { - return output == "GDBus.Error:"+ - "org.freedesktop.DBus.Error.ServiceUnknown: "+ + const suffix = "GDBus.Error:" + + "org.freedesktop.DBus.Error.ServiceUnknown: " + "org.freedesktop.DBus.Error.ServiceUnknown\r\n" + return output == suffix || + output == "Failed to show notification: "+suffix }, hst.ExitFailure, ) |
