Skip to content

Commit

Permalink
Use disconnect_nodes instead of restart
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Stepaniuk <[email protected]>
  • Loading branch information
Kostiantyn Stepaniuk committed Mar 4, 2019
1 parent 2d98432 commit b99f3ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/functional/feature_fork_choice_finalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ def connect_sync_disconnect(node1, node2, blockhash):
txid = validator.deposit(payto, 10000)
wait_until(lambda: self.have_tx_in_mempool([node0, node1, node2], txid))

self.restart_node(node0.index)
self.restart_node(node1.index)
self.restart_node(node2.index)
disconnect_nodes(node0, node1.index)
disconnect_nodes(node0, node2.index)
disconnect_nodes(node0, validator.index)
assert_equal(len(node0.getpeerinfo()), 0)

# 0 ... 4 ... 9 ... 14 ... 19 ... 24 ... 29 - 30
# F F F J tip
Expand Down

0 comments on commit b99f3ec

Please sign in to comment.