Skip to content

Commit

Permalink
Do not sleep after staking and after sending pings
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Mar 25, 2024
1 parent efaa521 commit 471cae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,14 +1054,12 @@ def send_pings(self, mnodes):
node.mnping()["sent"]
except:
pass
time.sleep(1)


def stake_and_sync(self, node_id, num_blocks):
for i in range(num_blocks):
self.mocktime = self.generate_pos(node_id, self.mocktime)
self.sync_blocks()
time.sleep(1)


def stake_and_ping(self, node_id, num_blocks, with_ping_mns=None):
Expand Down
1 change: 1 addition & 0 deletions test/functional/tiertwo_governance_sync_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ def run_test(self):
self.ownerTwo.setmocktime(self.mocktime)
self.connect_to_all(self.ownerTwoPos)
self.stake(2, [self.remoteOne, self.remoteTwo])
time.sleep(5) # wait a little bit

self.log.info("syncing node..")
self.wait_until_mnsync_finished()
Expand Down

0 comments on commit 471cae3

Please sign in to comment.