From ddf793905cd8739d27003296a5042a7dd905f1d3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 18:03:32 +0200 Subject: test(notify): send -1, not 0, in the expiry assertion The spec makes 0 mean never expire, so the test asserting a non-zero Expires was asserting against the wrong input. -1 asks the server to decide, which is a normal 10s at normal urgency, so the assertion holds. Pre-existing on base a248608 and unrelated to the image support. --- internal/notify/service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notify/service_test.go b/internal/notify/service_test.go index 735d01c..611c8fa 100644 --- a/internal/notify/service_test.go +++ b/internal/notify/service_test.go @@ -109,7 +109,7 @@ func TestNotifyReturnsAnIDAndPublishes(t *testing.T) { "app", uint32(0), "icon", "summary", "body", []string{"default", "open"}, map[string]dbus.Variant{"urgency": dbus.MakeVariant(byte(1))}, - int32(0)) + int32(-1)) if call.Err != nil { t.Fatalf("Notify: %v", call.Err) } -- cgit v1.2.3