Skip to content

Commit

Permalink
Shorten heartbeat period in test_local
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Aug 14, 2024
1 parent 718dd11 commit da256d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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'
Expand Down

0 comments on commit da256d8

Please sign in to comment.