Author: dpsenner Date: Fri Nov 13 19:04:11 2015 New Revision: 1714254 URL: http://svn.apache.org/viewvc?rev=1714254&view=rev Log: Fixed the remoting appender test
The trouble was the broken default serialization of logging events. Using a binary formatter solved the issue. Modified: logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs Modified: logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs?rev=1714254&r1=1714253&r2=1714254&view=diff ============================================================================== --- logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs (original) +++ logging/log4net/trunk/tests/src/Appender/RemotingAppenderTest.cs Fri Nov 13 19:04:11 2015 @@ -201,9 +201,16 @@ namespace log4net.Tests.Appender private void RegisterRemotingServerChannel() { if (m_remotingChannel == null) - { - m_remotingChannel = new TcpChannel(8085); - + { + BinaryClientFormatterSinkProvider clientSinkProvider = new BinaryClientFormatterSinkProvider(); + + BinaryServerFormatterSinkProvider serverSinkProvider = new BinaryServerFormatterSinkProvider(); + serverSinkProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full; + + Hashtable channelProperties = new Hashtable(); + channelProperties["port"] = 8085; + + m_remotingChannel = new TcpChannel(channelProperties, clientSinkProvider, serverSinkProvider); // Setup remoting server try {