diff --git a/tests/unit/logic/feed_to_finda/test_feed_to_finda.cpp b/tests/unit/logic/feed_to_finda/test_feed_to_finda.cpp index 3398647..c742281 100644 --- a/tests/unit/logic/feed_to_finda/test_feed_to_finda.cpp +++ b/tests/unit/logic/feed_to_finda/test_feed_to_finda.cpp @@ -70,19 +70,19 @@ TEST_CASE("feed_to_finda::feed_phase_unlimited", "[feed_to_finda]") { [&](int) { return ff.State() == FeedToFinda::UnloadBackToPTFE; }, 5000)); - // // disengaging idler - // REQUIRE(ff.State() == FeedToFinda::DisengagingIdler); - // REQUIRE(WhileCondition( - // ff, - // [&](int) { return mi::idler.Engaged(); }, - // 5000)); + // disengaging idler + REQUIRE(ff.State() == FeedToFinda::DisengagingIdler); + REQUIRE(WhileCondition( + ff, + [&](int) { return mi::idler.Engaged(); }, + 5000)); - CHECK(mm::axes[mm::Idler].pos == mi::Idler::SlotPosition(0).v); // @@TODO constants + CHECK(mm::axes[mm::Idler].pos == mi::Idler::SlotPosition(5).v); // @@TODO constants CHECK(mm::axes[mm::Selector].pos == ms::Selector::SlotPosition(0).v); // state machine finished ok, the green LED should be on REQUIRE(ff.State() == FeedToFinda::OK); - REQUIRE(ml::leds.Mode(mg::globals.ActiveSlot(), ml::green) == ml::blink0); + REQUIRE(ml::leds.Mode(mg::globals.ActiveSlot(), ml::green) == ml::off); REQUIRE(ff.Step() == true); // the automaton finished its work, any consecutive calls to Step must return true }