diff --git a/flexbe_core/test/test_core.py b/flexbe_core/test/test_core.py index 7ad2fe7..d73e3ab 100755 --- a/flexbe_core/test/test_core.py +++ b/flexbe_core/test/test_core.py @@ -117,8 +117,8 @@ class TestCore(unittest.TestCase): test = 0 - __TIME_SLEEP = 0.025 # Sleep time for loops - __EXECUTE_TIMEOUT_SEC = 0.025 # Timeout in executor loops for spin once + __EXECUTE_TIMEOUT_SEC = 0.2 # 0.025 # Timeout in executor loops for spin once + __TIME_SLEEP = 0.2 # 0.025 # Sleep time for loops __LOOP_COUNT = 50 # Number of times to execute loops for checking (total time ~ LOOP_COUNT*(TIME_SLEEP + TIMEOUT)) def __init__(self, *args, **kwargs): diff --git a/flexbe_core/test/test_exceptions.py b/flexbe_core/test/test_exceptions.py index e67417a..8a072e9 100755 --- a/flexbe_core/test/test_exceptions.py +++ b/flexbe_core/test/test_exceptions.py @@ -45,8 +45,8 @@ class TestExceptions(unittest.TestCase): """Test FlexBE Exception handling.""" test = 0 - __EXECUTE_TIMEOUT_SEC=0.025 - __TIME_SLEEP = 0.05 # Sleep time for loops + __EXECUTE_TIMEOUT_SEC = 0.2 # 0.025 # Timeout in executor loops for spin once + __TIME_SLEEP = 0.2 # 0.025 # Sleep time for loops def __init__(self, *args, **kwargs): """Initialize TestExceptions instance.""" diff --git a/flexbe_core/test/test_exceptions_spin.py b/flexbe_core/test/test_exceptions_spin.py index cc087f3..fca7b03 100644 --- a/flexbe_core/test/test_exceptions_spin.py +++ b/flexbe_core/test/test_exceptions_spin.py @@ -45,8 +45,8 @@ class TestExceptionsSpin(unittest.TestCase): """Test FlexBE Exception handling.""" test = 0 - __EXECUTE_TIMEOUT_SEC=0.025 - __TIME_SLEEP = 0.05 # Sleep time for loops + __EXECUTE_TIMEOUT_SEC = 0.2 # 0.025 # Timeout in executor loops for spin once + __TIME_SLEEP = 0.2 # 0.025 # Sleep time for loops def __init__(self, *args, **kwargs): """Initialize TestExceptionsSpin instance.""" diff --git a/flexbe_core/test/test_logger.py b/flexbe_core/test/test_logger.py index a3b14e5..630d023 100644 --- a/flexbe_core/test/test_logger.py +++ b/flexbe_core/test/test_logger.py @@ -45,8 +45,8 @@ class TestLogger(unittest.TestCase): """Test FlexBE Logger handling.""" test = 0 - __EXECUTE_TIMEOUT_SEC=0.025 - __TIME_SLEEP = 0.05 # Sleep time for loops + __EXECUTE_TIMEOUT_SEC = 0.2 # 0.025 # Timeout in executor loops for spin once + __TIME_SLEEP = 0.2 # 0.025 # Sleep time for loops def __init__(self, *args, **kwargs): """Initialize TestLogger instance.""" diff --git a/flexbe_core/test/test_proxies.py b/flexbe_core/test/test_proxies.py index 560e337..261191a 100755 --- a/flexbe_core/test/test_proxies.py +++ b/flexbe_core/test/test_proxies.py @@ -54,8 +54,8 @@ class TestProxies(unittest.TestCase): """Test the FlexBE proxies.""" test = 0 - __EXECUTE_TIMEOUT_SEC=0.025 - __TIME_SLEEP = 0.05 # Sleep time for loops + __EXECUTE_TIMEOUT_SEC = 0.2 # 0.025 # Timeout in executor loops for spin once + __TIME_SLEEP = 0.2 # 0.025 # Sleep time for loops def __init__(self, *args, **kwargs): """Initialize TestProxies instance.""" diff --git a/flexbe_onboard/tests/test_onboard.py b/flexbe_onboard/tests/test_onboard.py index 858b5b4..0370419 100755 --- a/flexbe_onboard/tests/test_onboard.py +++ b/flexbe_onboard/tests/test_onboard.py @@ -211,7 +211,7 @@ def test_onboard_behaviors(self): self.clear_extra_heartbeat_ready_messages() # send the same behavior with different parameters - self.node.get_logger().info('Republish modified behavior ...') + self.node.get_logger().info('\n\nRepublish modified behavior ...') request.arg_keys = ['param', 'invalid'] request.arg_values = ['value_1', 'should be ignored'] request.input_keys = [] @@ -224,7 +224,8 @@ def test_onboard_behaviors(self): behavior_logs = [] # Wait for published message - end_time = time.time() + 1 + self.node.get_logger().info('\n\nExecute modified behavior ...') + end_time = time.time() + 2 try: while time.time() < end_time: self.executor.spin_once(timeout_sec=0.1) @@ -237,6 +238,7 @@ def test_onboard_behaviors(self): self.executor.spin_once(timeout_sec=0.1) except Exception as exc: print(f'\x1b[91mException in executor: {exc}\x1b[0m') + self.node.get_logger().info(f'{behavior_logs}') self.assertIn('value_1', behavior_logs) self.node.get_logger().info('Done onboard testing!') self.executor.spin_once(timeout_sec=0.1)