From 2ca60f86ff1e68624137911e07c59052aa6c2888 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 22 Oct 2026 06:21:45 -0400 Subject: [PATCH] test(templateengine): drop racy verdict-cache Count assertion from the faulted-compile test (review 2026-10-21 04/C1) --- .../Validation/ScriptCompilerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ZB.MOM.WW.ScadaBridge.TemplateEngine.Tests/Validation/ScriptCompilerTests.cs b/tests/ZB.MOM.WW.ScadaBridge.TemplateEngine.Tests/Validation/ScriptCompilerTests.cs index effca331..1c417032 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.TemplateEngine.Tests/Validation/ScriptCompilerTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.TemplateEngine.Tests/Validation/ScriptCompilerTests.cs @@ -304,8 +304,8 @@ public class ScriptCompilerTests Assert.True(first.IsFailure); Assert.Contains("'Flaky'", first.Error); Assert.Contains("metadata read failed", first.Error); - Assert.Equal(0, ScriptCompileVerdictCache.Count); // nothing memoised + // Nothing was memoised: the second call re-runs the compile and succeeds. Assert.True(c.TryCompile(code, "Flaky").IsSuccess); // pre-fix: sticky "failed to compile" } }