Fix module tests

This commit is contained in:
jfmcarreira committed 2021-12-18 23:53:10 +00:00
1 parent c24ddcdc59
commit f4c69fd894
2 files changed
+2 -21

No files matched your search

+1 -11
View File
@@ -55,17 +55,7 @@ protected:
void SetUp()
{
std::string moduleName = CALYP_TEST_MODULE_NAME;
CalypModulesFactoryMap& moduleFactoryMap = CalypModulesFactory::Get()->getMap();
CalypModulesFactoryMap::iterator it = moduleFactoryMap.begin();
for( unsigned int i = 0; it != moduleFactoryMap.end(); ++it, i++ )
{
if( strcmp( it->first, moduleName.c_str() ) == 0 )
{
pcModule = it->second();
break;
}
}
pcModule = CalypModulesFactory::Get()->CreateModule( moduleName );
}
// Called after each test