Skip to content

Commit

Permalink
upate
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Jan 10, 2024
1 parent 2c34283 commit d25719f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions test/DynamoCoreTests/UnitTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ public virtual void Cleanup()
AppDomain.CurrentDomain.AssemblyResolve -= assemblyHelper.ResolveAssembly;
}

GC.Collect();
GC.WaitForPendingFinalizers();

TestUtilities.AssertCounters();
System.Console.WriteLine($"PID {Process.GetCurrentProcess().Id} Finished test: {TestContext.CurrentContext.Test.Name}");
}
Expand Down
5 changes: 3 additions & 2 deletions test/DynamoCoreWpfTests/CoreUITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Threading;
using CoreNodeModels.Input;
using Dynamo.Configuration;
using Dynamo.Controls;
Expand Down Expand Up @@ -786,7 +787,7 @@ private void RestartTestSetup(bool startInTestMode)

//create the view
View = new DynamoView(ViewModel);
SynchronizationContext.SetSynchronizationContext(new SynchronizationContext());
SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext());
}

private void RestartTestSetupWithNewSettings(Dynamo.Models.DynamoModel.IStartConfiguration configuration, bool startInTestMode)
Expand Down Expand Up @@ -819,7 +820,7 @@ private void RestartTestSetupWithNewSettings(Dynamo.Models.DynamoModel.IStartCon

//create the view
View = new DynamoView(ViewModel);
SynchronizationContext.SetSynchronizationContext(new SynchronizationContext());
SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext());
}

#endregion
Expand Down
3 changes: 0 additions & 3 deletions test/Libraries/SystemTestServices/SystemTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ public virtual void TearDown()
Console.WriteLine(ex.StackTrace);
}

GC.Collect();
GC.WaitForPendingFinalizers();

TestUtilities.AssertCounters();
System.Console.WriteLine($"PID {Process.GetCurrentProcess().Id} Finished test: {TestContext.CurrentContext.Test.Name} ");
}
Expand Down

0 comments on commit d25719f

Please sign in to comment.