Skip to content

Commit 3e16970

Browse files
committed
ensure logger for transport tests
1 parent ab580f6 commit 3e16970

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceControl.Transports.Tests/TransportTestFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using NServiceBus.Logging;
1414
using NServiceBus.Transport;
1515
using NUnit.Framework;
16+
using ServiceControl.Infrastructure;
1617
using ServiceControl.Infrastructure.TestLogger;
1718
using Transports;
1819

@@ -24,6 +25,7 @@ public virtual async Task Setup()
2425
{
2526
//TODO remove LogManager usage
2627
LogManager.UseFactory(new ExtensionsLoggerFactory(new TestContextAppenderFactory()));
28+
LoggerUtil.ActiveLoggers = Loggers.Test;
2729
configuration = new TransportTestsConfiguration();
2830
testCancellationTokenSource = Debugger.IsAttached ? new CancellationTokenSource() : new CancellationTokenSource(TestTimeout);
2931
registrations = [];

0 commit comments

Comments
 (0)