Skip to content

Commit 0ba585a

Browse files
committed
Test
1 parent d2893d1 commit 0ba585a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/DotNetty.Common.Tests/Internal/Logging/InternalLoggerFactoryTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void ShouldGetInstance()
4242
[Fact]
4343
public void TestMockReturned()
4444
{
45-
Output.WriteLine("TestMockReturned, Pre:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
45+
//Output.WriteLine("TestMockReturned, Pre:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
4646
Mock<ILogger> mock;
4747
using (SetupMockLogger(out mock))
4848
{
@@ -52,18 +52,18 @@ public void TestMockReturned()
5252

5353
Assert.True(logger.TraceEnabled);
5454
mock.Verify(x => x.IsEnabled(LogLevel.Trace), Times.Once);
55-
Output.WriteLine("TestMockReturned, Finish:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
55+
//Output.WriteLine("TestMockReturned, Finish:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
5656
}
57-
Output.WriteLine("TestMockReturned, Post:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
58-
Assert.True(false, "To See The Log");
57+
//Output.WriteLine("TestMockReturned, Post:" + RuntimeHelpers.GetHashCode(InternalLoggerFactory.DefaultFactory));
58+
//Assert.True(false, "To See The Log");
5959
}
6060

6161
IDisposable SetupMockLogger(out Mock<ILogger> loggerMock)
6262
{
6363
ILoggerFactory oldLoggerFactory = InternalLoggerFactory.DefaultFactory;
64-
Output.WriteLine($"SetupMockLogger,oldLoggerFactory={RuntimeHelpers.GetHashCode(oldLoggerFactory)}");
64+
//Output.WriteLine($"SetupMockLogger,oldLoggerFactory={RuntimeHelpers.GetHashCode(oldLoggerFactory)}");
6565
var loggerFactory = new LoggerFactory();
66-
Output.WriteLine($"SetupMockLogger,loggerFactory={RuntimeHelpers.GetHashCode(loggerFactory)}");
66+
//Output.WriteLine($"SetupMockLogger,loggerFactory={RuntimeHelpers.GetHashCode(loggerFactory)}");
6767
var factoryMock = new Mock<ILoggerProvider>(MockBehavior.Strict);
6868
ILoggerProvider mockFactory = factoryMock.Object;
6969
loggerMock = new Mock<ILogger>(MockBehavior.Strict);
@@ -72,7 +72,7 @@ IDisposable SetupMockLogger(out Mock<ILogger> loggerMock)
7272
InternalLoggerFactory.DefaultFactory = loggerFactory;
7373
return new Disposable(() => {
7474
InternalLoggerFactory.DefaultFactory = oldLoggerFactory;
75-
Output.WriteLine($"SetupMockLogger,Dispose to={RuntimeHelpers.GetHashCode(oldLoggerFactory)}");
75+
//Output.WriteLine($"SetupMockLogger,Dispose to={RuntimeHelpers.GetHashCode(oldLoggerFactory)}");
7676
});
7777
}
7878
}

test/DotNetty.Common.Tests/Utilities/HashedWheelTimerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void TestStopTimer()
7878
}
7979
Thread.Sleep(1000); // sleep for a second
8080
Assert.NotEqual(0, timerUnprocessed.StopAsync().Result.Count); // Number of unprocessed timeouts should be greater than 0
81-
Assert.True(false, "To See The Log");
81+
//Assert.True(false, "To See The Log");
8282
}
8383

8484
[Fact] // (timeout = 3000)

0 commit comments

Comments
 (0)