diff --git a/tests/ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests/Tracking/OperationTrackingStoreTests.cs b/tests/ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests/Tracking/OperationTrackingStoreTests.cs index 977d6b65..b0ae9b9c 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests/Tracking/OperationTrackingStoreTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.SiteRuntime.Tests/Tracking/OperationTrackingStoreTests.cs @@ -872,6 +872,11 @@ public class OperationTrackingStoreTests : IDisposable kind: nameof(AuditKind.ApiCallCached), targetSummary: "ERP.B", sourceInstanceId: "I", sourceScript: "S", sourceNode: "node-a"); + // Writes are queued (single-writer pump, 2026-09-06): the verifier connection + // below bypasses the store, so drain the queue first or the UPDATE races the + // INSERTs and touches zero rows. + await store.FlushAsync(); + // Force both rows to share one exact UpdatedAtUtc instant, formatted the same // way the read normalises the cursor ('Z'-suffixed round-trip "o"). var boundary = DateTime.UtcNow;