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" } }