From 156355968592b8aea69b55c4311b4772d76c3eea Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Mon, 27 Sep 2021 07:04:28 +0200 Subject: [PATCH] Fix startup conditions for Unload to FINDA state machine tests --- tests/unit/logic/unload_to_finda/test_unload_to_finda.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/logic/unload_to_finda/test_unload_to_finda.cpp b/tests/unit/logic/unload_to_finda/test_unload_to_finda.cpp index 7e9af3f..9435cb9 100644 --- a/tests/unit/logic/unload_to_finda/test_unload_to_finda.cpp +++ b/tests/unit/logic/unload_to_finda/test_unload_to_finda.cpp @@ -26,6 +26,8 @@ TEST_CASE("unload_to_finda::regular_unload", "[unload_to_finda]") { // we need finda ON SetFINDAStateAndDebounce(true); + // and MMU "thinks" it has the filament loaded + mg::globals.SetFilamentLoaded(true); logic::UnloadToFinda ff; @@ -75,6 +77,8 @@ TEST_CASE("unload_to_finda::unload_without_FINDA_trigger", "[unload_to_finda]") // we need finda ON SetFINDAStateAndDebounce(true); + // and MMU "thinks" it has the filament loaded + mg::globals.SetFilamentLoaded(true); logic::UnloadToFinda ff;