WaitForDraw should return on Draw or Close

- Revise default wait value due to observed hangs
- Catch AppDomainUnloaded exception and exit background thread/loop
This commit is contained in:
John Lewin 2017-12-09 14:20:25 -08:00
parent 57553a33d9
commit 559402b2b1
3 changed files with 6 additions and 2 deletions

View file

@ -241,6 +241,10 @@ namespace MatterHackers.MatterControl
thumbGenResetEvent.WaitOne();
}
}
catch (AppDomainUnloadedException)
{
return;
}
catch (ThreadAbortException)
{
return;

@ -1 +1 @@
Subproject commit be5a14436e63982ec3eaee7d0fee215fbf0e1747
Subproject commit b91a4c8f8e0855fe3b647d31d5cf6cf251e92a91

View file

@ -436,7 +436,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
/// </summary>
/// <param name="testRunner">The TestRunner to interact with</param>
/// <param name="textValue">The text to type</param>
public static void CompleteDialog(this AutomationRunner testRunner, string textValue, double secondsToWait = 1)
public static void CompleteDialog(this AutomationRunner testRunner, string textValue, double secondsToWait = 2)
{
// AutomationDialog requires no delay
if (AggContext.FileDialogs is AutomationDialogProvider)