mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: Remove test_lightningd and all the legacy testing framework
This commit is contained in:
committed by
Rusty Russell
parent
d3731b08b1
commit
ae99e493b8
@@ -1,12 +1,14 @@
|
||||
from concurrent import futures
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from time import time
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
import logging
|
||||
import pytest
|
||||
import random
|
||||
import utils
|
||||
|
||||
from concurrent import futures
|
||||
from test_lightningd import NodeFactory
|
||||
from time import time
|
||||
from tqdm import tqdm
|
||||
|
||||
num_workers = 480
|
||||
num_payments = 10000
|
||||
@@ -38,13 +40,6 @@ def bitcoind():
|
||||
bitcoind.proc.wait()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def node_factory(request, bitcoind, executor):
|
||||
nf = NodeFactory(request.node.name, bitcoind, executor)
|
||||
yield nf
|
||||
nf.killall([False] * len(nf.nodes))
|
||||
|
||||
|
||||
def test_single_hop(node_factory, executor):
|
||||
l1 = node_factory.get_node()
|
||||
l2 = node_factory.get_node()
|
||||
|
||||
Reference in New Issue
Block a user