test(notification-outbox): assert NotNull in SourceScript negative test

This commit is contained in:
Joseph Doherty
2026-05-19 03:57:38 -04:00
parent 558f9ceb39
commit 17861efa51

View File

@@ -142,6 +142,7 @@ public class NotifyHelperTests : TestKit, IAsyncLifetime, IDisposable
var notificationId = await notify.To("Operators").Send("Pump alarm", "Pump 3 tripped");
var buffered = await _saf.GetMessageByIdAsync(notificationId);
Assert.NotNull(buffered);
var payload = JsonSerializer.Deserialize<NotificationSubmit>(buffered!.PayloadJson);
Assert.Null(payload!.SourceScript);
}