From 17861efa51ee9c2bae52f5a049eaf67447b44f08 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 19 May 2026 03:57:38 -0400 Subject: [PATCH] test(notification-outbox): assert NotNull in SourceScript negative test --- tests/ScadaLink.SiteRuntime.Tests/Scripts/NotifyHelperTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ScadaLink.SiteRuntime.Tests/Scripts/NotifyHelperTests.cs b/tests/ScadaLink.SiteRuntime.Tests/Scripts/NotifyHelperTests.cs index e85e671..509e8a6 100644 --- a/tests/ScadaLink.SiteRuntime.Tests/Scripts/NotifyHelperTests.cs +++ b/tests/ScadaLink.SiteRuntime.Tests/Scripts/NotifyHelperTests.cs @@ -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(buffered!.PayloadJson); Assert.Null(payload!.SourceScript); }