Prevent overlapped WaitForLayerAndResume calls

This commit is contained in:
John Lewin 2017-12-15 09:37:18 -08:00
parent d6b06fae92
commit 08871537f2

View file

@ -124,10 +124,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
var printer = ApplicationController.Instance.ActivePrinter;
// Wait for layer
testRunner.Delay(() => printer.Bed.ActiveLayerIndex + 1 == indexToWaitFor, 30, 500);
Assert.AreEqual(indexToWaitFor, printer.Bed.ActiveLayerIndex + 1);
testRunner.ClickByName("No Button");
testRunner.WaitVanishForName("No Button", 10);
}
[Test /* Test will fail if screen size is and "HeatBeforeHoming" falls below the fold */]