Skip to content

Commit

Permalink
Fixing unit tests to work with previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Young committed Jan 29, 2016
1 parent 09afb78 commit f036e16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Serilog.Tests/Context/LogContextTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public class LogContextTests
{
public LogContextTests()
{
#if REMOTING
LogContext.PermitCrossAppDomainCalls = false;
#endif
#if !ASYNCLOCAL
CallContext.LogicalSetData(typeof(LogContext).FullName, null);
#endif
Expand Down Expand Up @@ -113,6 +115,7 @@ public async Task ContextPropertiesCrossAsyncCalls()
}
}

#if REMOTING
[Fact]
public async Task ContextPropertiesPersistWhenCrossAppDomainCallsAreEnabled()
{
Expand Down Expand Up @@ -141,6 +144,7 @@ public async Task ContextPropertiesPersistWhenCrossAppDomainCallsAreEnabled()
Assert.NotSame(pre, post);
}
}
#endif

#if !NO_APPDOMAIN
// Must not actually try to pass context across domains,
Expand Down

0 comments on commit f036e16

Please sign in to comment.