diff --git a/test/functional/p2p_net_deadlock.py b/test/functional/p2p_net_deadlock.py index cf62d1331096e..b1b9e67c6d47b 100755 --- a/test/functional/p2p_net_deadlock.py +++ b/test/functional/p2p_net_deadlock.py @@ -29,8 +29,7 @@ def run_test(self): thread1.join() self.log.info("Check whether a deadlock happened") - self.nodes[0].generate(1) - self.sync_blocks() + self.generate(self.nodes[0], 1) if __name__ == '__main__':