fix unittest
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2023-02-08 16:58:32 +01:00
parent c04936d0dc
commit fddfa80f76
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -7,7 +7,7 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include "../../dummies/TemperatureSensorInserter.h" #include "dummies/TemperatureSensorInserter.h"
#include "../testEnvironment.h" #include "../testEnvironment.h"
#include "mission/core/GenericFactory.h" #include "mission/core/GenericFactory.h"
#include "test/gpio/DummyGpioIF.h" #include "test/gpio/DummyGpioIF.h"
@ -15,7 +15,9 @@
TEST_CASE("Thermal Controller", "[ThermalController]") { TEST_CASE("Thermal Controller", "[ThermalController]") {
const object_id_t THERMAL_CONTROLLER_ID = 0x123; const object_id_t THERMAL_CONTROLLER_ID = 0x123;
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER); TemperatureSensorInserter::Max31865DummyMap map0;
TemperatureSensorInserter::Tmp1075DummyMap map1;
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER, map0, map1);
auto dummyGpioIF = new DummyGpioIF(); auto dummyGpioIF = new DummyGpioIF();
auto dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0); auto dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0);
// TODO: Create dummy heater handler // TODO: Create dummy heater handler