mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
tests: fix comments about the number of nodes
A fully connected network of 10 nodes has 45 connections in total, not 55. Changelog-None
This commit is contained in:
committed by
Christian Decker
parent
2ea91f834c
commit
02dc261d73
@@ -147,15 +147,15 @@ def test_closing_id(node_factory):
|
||||
|
||||
@unittest.skipIf(VALGRIND, "Flaky under valgrind")
|
||||
def test_closing_torture(node_factory, executor, bitcoind):
|
||||
# We set up N-to-N fully-connected mesh, then try
|
||||
# We set up a fully-connected mesh of N nodes, then try
|
||||
# closing them all at once.
|
||||
amount = 10**6
|
||||
|
||||
num_nodes = 10 # => 55 channels (36 seconds on my laptop)
|
||||
num_nodes = 10 # => 45 channels (36 seconds on my laptop)
|
||||
if VALGRIND:
|
||||
num_nodes -= 4 # => 21 (135 seconds)
|
||||
num_nodes -= 4 # => 15 (135 seconds)
|
||||
if SLOW_MACHINE:
|
||||
num_nodes -= 1 # => 45/15 (37/95 seconds)
|
||||
num_nodes -= 1 # => 36/10 (37/95 seconds)
|
||||
|
||||
nodes = node_factory.get_nodes(num_nodes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user