diff --git a/Test/Unit/TransformationTest.cs b/Test/Unit/TransformationTest.cs index ef53a144..3bf5fb0a 100644 --- a/Test/Unit/TransformationTest.cs +++ b/Test/Unit/TransformationTest.cs @@ -33,7 +33,11 @@ public TransformationTest(ITestOutputHelper output) var services = new ServiceCollection(); services.AddTestLogging(output); log = services.BuildServiceProvider().GetRequiredService>(); - ConfigurationUtils.AddTypeConverter(new FieldFilterConverter()); + try + { + ConfigurationUtils.AddTypeConverter(new FieldFilterConverter()); + } + catch { } } [Fact] public void TestNameFilter() diff --git a/Test/Utils/BaseExtractorTestFixture.cs b/Test/Utils/BaseExtractorTestFixture.cs index df1cd253..fe3adc48 100644 --- a/Test/Utils/BaseExtractorTestFixture.cs +++ b/Test/Utils/BaseExtractorTestFixture.cs @@ -44,7 +44,11 @@ protected BaseExtractorTestFixture(PredefinedSetup[] setups = null) // Set higher min thread count, this is required due to running both server and client in the same process. // The server uses the threadPool in a weird way that can cause starvation if this is set too low. ThreadPool.SetMinThreads(20, 20); - ConfigurationUtils.AddTypeConverter(new FieldFilterConverter()); + try + { + ConfigurationUtils.AddTypeConverter(new FieldFilterConverter()); + } + catch { } Services = new ServiceCollection(); Config = Services.AddConfig("config.test.yml", 1); Config.Source.EndpointUrl = $"opc.tcp://localhost:{Port}";