Skip to content

Commit 0b26355

Browse files
committed
Fix unit test failing.
1 parent e9e12ab commit 0b26355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UnitTests/Application/SynchronizatonContextTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class SyncrhonizationContextTests
77
[Fact]
88
public void SynchronizationContext_CreateCopy ()
99
{
10+
ConsoleDriver.RunningUnitTests = true;
1011
Application.Init ();
1112
SynchronizationContext context = SynchronizationContext.Current;
1213
Assert.NotNull (context);
@@ -61,6 +62,7 @@ public void SynchronizationContext_Post (Type driverType)
6162
[AutoInitShutdown]
6263
public void SynchronizationContext_Send ()
6364
{
65+
ConsoleDriver.RunningUnitTests = true;
6466
Application.Init ();
6567
SynchronizationContext context = SynchronizationContext.Current;
6668

0 commit comments

Comments
 (0)