From 7db16bfb4243deb0c8f3e559972357d4eeb61ca0 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Thu, 14 Nov 2024 16:42:45 -0800 Subject: [PATCH] ensure error is reported --- pkgs/sdk/server-ai/test/InterpolationTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/sdk/server-ai/test/InterpolationTests.cs b/pkgs/sdk/server-ai/test/InterpolationTests.cs index da0c2ba..d7ddf16 100644 --- a/pkgs/sdk/server-ai/test/InterpolationTests.cs +++ b/pkgs/sdk/server-ai/test/InterpolationTests.cs @@ -143,6 +143,8 @@ public void TestInterpolationMalformed() mockClient.Setup(x => x.GetLogger()).Returns(mockLogger.Object); + mockLogger.Setup(x => x.Error(It.IsAny())); + var client = new LdAiClient(mockClient.Object); var tracker = client.ModelConfig("foo", Context.New("key"), LdAiConfig.Disabled); Assert.False(tracker.Config.Enabled);