Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo committed Jun 20, 2024
1 parent fc2734e commit 444140b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Test/Unit/TransformationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public TransformationTest(ITestOutputHelper output)
var services = new ServiceCollection();
services.AddTestLogging(output);
log = services.BuildServiceProvider().GetRequiredService<ILogger<NodeTransformation>>();
ConfigurationUtils.AddTypeConverter(new FieldFilterConverter());
try
{
ConfigurationUtils.AddTypeConverter(new FieldFilterConverter());
}
catch { }
}
[Fact]
public void TestNameFilter()
Expand Down
6 changes: 5 additions & 1 deletion Test/Utils/BaseExtractorTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FullConfig>("config.test.yml", 1);
Config.Source.EndpointUrl = $"opc.tcp://localhost:{Port}";
Expand Down

0 comments on commit 444140b

Please sign in to comment.