From da256d8add7be4129082c44a252a9cf0c0c75add Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 14 Aug 2024 14:24:28 +0200 Subject: [PATCH] Shorten heartbeat period in test_local --- test/test_local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_local.py b/test/test_local.py index 5f7929c9..5f6d477b 100644 --- a/test/test_local.py +++ b/test/test_local.py @@ -89,7 +89,7 @@ def test_segmented_download(self): def test_slave_send_heartbeat(self): # Setting the heartbeat time should trigger heartbeating # to start - self.remote_node.sdo["Producer heartbeat time"].raw = 1000 + self.remote_node.sdo["Producer heartbeat time"].raw = 100 state = self.remote_node.nmt.wait_for_heartbeat() self.local_node.nmt.stop_heartbeat() # The NMT master will change the state INITIALISING (0) @@ -98,7 +98,7 @@ def test_slave_send_heartbeat(self): def test_nmt_state_initializing_to_preoper(self): # Initialize the heartbeat timer - self.local_node.sdo["Producer heartbeat time"].raw = 1000 + self.local_node.sdo["Producer heartbeat time"].raw = 100 self.local_node.nmt.stop_heartbeat() # This transition shall start the heartbeating self.local_node.nmt.state = 'INITIALISING'