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

This commit is contained in:
Robin Müller 2022-09-29 13:23:55 +02:00
parent 1463963532
commit fcef7e42a5
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,6 @@
TEST_CASE("Configfile Handler", "[ConfigHandler]") { TEST_CASE("Configfile Handler", "[ConfigHandler]") {
sif::debug << "Testcase config file handler" << std::endl; sif::debug << "Testcase config file handler" << std::endl;
testEnvironment::initialize();
// Init handler // Init handler
GlobalConfigHandler confighandler = GlobalConfigHandler(objects::GLOBAL_JSON_CFG, "JSON.config"); GlobalConfigHandler confighandler = GlobalConfigHandler(objects::GLOBAL_JSON_CFG, "JSON.config");
REQUIRE(confighandler.initialize() == returnvalue::OK); REQUIRE(confighandler.initialize() == returnvalue::OK);
@ -62,4 +61,5 @@ TEST_CASE("Configfile Handler", "[ConfigHandler]") {
REQUIRE(confighandler.getConfigFileValue(PARAM2, doubleData) != REQUIRE(confighandler.getConfigFileValue(PARAM2, doubleData) !=
returnvalue::OK); // NVMParameterBase::KEY_NOT_EXISTS is private, why? returnvalue::OK); // NVMParameterBase::KEY_NOT_EXISTS is private, why?
REQUIRE(confighandler.setConfigFileValue(PARAM2, doubleData) != returnvalue::OK); REQUIRE(confighandler.setConfigFileValue(PARAM2, doubleData) != returnvalue::OK);
std::filesystem::remove("JSON.config");
} }

View File

@ -15,7 +15,7 @@ TEST_CASE("Thermal Controller", "[ThermalController]") {
new TemperatureSensorsDummy(); new TemperatureSensorsDummy();
new SusDummy(); new SusDummy();
testEnvironment::initialize(); //testEnvironment::initialize();
ThermalController controller(THERMAL_CONTROLLER_ID, objects::NO_OBJECT); ThermalController controller(THERMAL_CONTROLLER_ID, objects::NO_OBJECT);
ReturnValue_t result = controller.initialize(); ReturnValue_t result = controller.initialize();

View File

@ -4,7 +4,7 @@
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
testEnvironment::setup(); testEnvironment::setup();
testEnvironment::initialize();
// Catch internal function call // Catch internal function call
int result = Catch::Session().run(argc, argv); int result = Catch::Session().run(argc, argv);