From 99f6a5455ae10fd7643a0db170eb9b12b4cfa19c Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 30 Jul 2018 11:44:26 -0500 Subject: [PATCH] Adjust requirement as unlift() won't emit gcode if already there. --- src/test/libslic3r/test_gcodewriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/libslic3r/test_gcodewriter.cpp b/src/test/libslic3r/test_gcodewriter.cpp index 98afa0ec6..bf474b0fe 100644 --- a/src/test/libslic3r/test_gcodewriter.cpp +++ b/src/test/libslic3r/test_gcodewriter.cpp @@ -26,7 +26,7 @@ SCENARIO("lift() is not ignored after unlift() at large values of Z", "[!mayfail AND_WHEN("Z is moved post-lift to the same delta as the config Z lift") { REQUIRE(writer.travel_to_z(trouble_Z + config.retract_lift.values[0]).size() == 0); AND_WHEN("GCodeWriter::Lift() is called after GCodeWriter::Unlift()") { - REQUIRE(writer.unlift().size() > 0); + REQUIRE(writer.unlift().size() == 0); // we're the same height so no additional move happens. THEN("GCodeWriter::Lift() emits gcode.") { REQUIRE(writer.lift().size() > 0); }