Browse Source

tests: fix comments about the number of nodes

A fully connected network of 10 nodes has 45 connections
in total, not 55.

Changelog-None
travis-debug
Vasil Dimov 5 years ago
committed by Christian Decker
parent
commit
02dc261d73
  1. 8
      tests/test_closing.py

8
tests/test_closing.py

@ -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)

Loading…
Cancel
Save