Improving test performance

This commit is contained in:
Lars Brubaker 2020-11-17 14:39:29 -08:00
parent c8134793e3
commit 83cbb3d225
3 changed files with 38 additions and 4 deletions

View file

@ -395,7 +395,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
bool foundTemp = false;
printer.Connection.LineSent += (s, e) =>
{
if (e.StartsWith("M104 S222.2"))
if (e.Contains("M104 S222.2"))
{
foundTemp = true;
}
@ -408,7 +408,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
.ClickByName("Temperature Edit")
.Type("222.2")
.StartPrint(printer)
.WaitFor(() => printer.Connection.CommunicationState == CommunicationStates.Connected);
.WaitFor(() => printer.Connection.CommunicationState == CommunicationStates.FinishedPrint, 60);
// TODO: finish export test
//.ExportPrintAndLoadGCode(printer, out string gcode);
Assert.IsTrue(foundTemp);
}