New st-client deployment. Allow to load same stack id (accumulative services), ignori...
[anna.git] / example / diameter / launcher / testing / TestManager.cpp
index ee6be63..2c03b4d 100644 (file)
@@ -279,14 +279,18 @@ bool TestManager::resetPool(bool hard) throw() {
 
 bool TestManager::tick() throw() {
   LOGDEBUG(anna::Logger::debug("New test clock tick !", ANNA_FILE_LOCATION));
+  return execTestCases(a_synchronousAmount);
+}
+
+bool TestManager::execTestCases(int sync_amount) throw() {
 
   if (!tests()) {
-    LOGWARNING(anna::Logger::warning("Testing pool is empty. You need programming. Stopping test clock", ANNA_FILE_LOCATION));
+    LOGWARNING(anna::Logger::warning("Testing pool is empty. You need programming", ANNA_FILE_LOCATION));
     return false;
   }
 
   // Synchronous sendings per tick:
-  int count = a_synchronousAmount;
+  int count = sync_amount;
   while (count > 0) {
     if (!nextTestCase()) return false; // stop the clock
     count--;