diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-15 18:03:32 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-15 18:03:32 +0200 |
| commit | ddf793905cd8739d27003296a5042a7dd905f1d3 (patch) | |
| tree | d53d0cc041cf510dc77c21982adf512ed2eca8aa /internal | |
| parent | 03784b2024436827de25515b1d85d9ffdde40745 (diff) | |
| download | notifyd-ddf793905cd8739d27003296a5042a7dd905f1d3.tar.gz notifyd-ddf793905cd8739d27003296a5042a7dd905f1d3.zip | |
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.
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/notify/service_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
