From 8899d6e0911af8b159e3cac0f5a63b78738b9667 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 15 Jun 2026 15:03:38 -0400 Subject: [PATCH] test(galaxy): assert current Write/Subscribe guard text (PR 4.4/4.W refs removed in Phase 0 b4af9e7f) --- .../Runtime/GalaxyDriverSubscribeTests.cs | 2 +- .../Runtime/GalaxyDriverWriteTests.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverSubscribeTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverSubscribeTests.cs index 84e5df09..42a94254 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverSubscribeTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverSubscribeTests.cs @@ -245,7 +245,7 @@ public sealed class GalaxyDriverSubscribeTests using var driver = new GalaxyDriver("g", Opts()); var ex = await Should.ThrowAsync(() => driver.SubscribeAsync(["x"], TimeSpan.FromSeconds(1), CancellationToken.None)); - ex.Message.ShouldContain("PR 4.W"); + ex.Message.ShouldContain("GalaxyDriver.SubscribeAsync requires"); } /// Verifies subscription falls back to configured interval when zero is passed. diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverWriteTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverWriteTests.cs index 61c86d06..9c08b942 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverWriteTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/GalaxyDriverWriteTests.cs @@ -188,15 +188,15 @@ public sealed class GalaxyDriverWriteTests writer.Calls.ShouldBeEmpty(); } - /// Verifies that WriteAsync throws when no writer is configured, referencing PR 4.4. + /// Verifies that WriteAsync throws a clear guard error when no writer is configured. [Fact] - public async Task WriteAsync_NoWriter_Throws_PointingAtPR44() + public async Task WriteAsync_NoWriter_Throws() { var driver = new GalaxyDriver("g", Opts()); var ex = await Should.ThrowAsync(() => driver.WriteAsync([new WriteRequest("x", 1)], CancellationToken.None)); - ex.Message.ShouldContain("PR 4.4"); + ex.Message.ShouldContain("GalaxyDriver.WriteAsync requires"); } /// Verifies that WriteAsync throws ObjectDisposedException after the driver is disposed.