electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7589bdc6a953598d081ff81d518277866b931c9e
parent 48252318b8f39885df33d412c5850c69587b8784
Author: SomberNight <somber.night@protonmail.com>
Date:   Fri, 12 Oct 2018 19:58:37 +0200

fix tests

Diffstat:
Melectrum/tests/test_lnrouter.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/electrum/tests/test_lnrouter.py b/electrum/tests/test_lnrouter.py @@ -1,9 +1,9 @@ import unittest import tempfile import shutil +import asyncio from electrum.util import bh2u, bfh -from electrum.lnbase import Peer from electrum.lnonion import (OnionHopsDataSingle, new_onion_packet, OnionPerHop, process_onion_packet, _decode_onion_error) from electrum import bitcoin, lnrouter @@ -41,8 +41,9 @@ class Test_LNRouter(TestCaseForTestnet): def test_find_path_for_payment(self): class fake_network: config = self.config - add_jobs = lambda *args: None + asyncio_loop = asyncio.get_event_loop() trigger_callback = lambda *args: None + async def add_job(self, *args): return None fake_network.channel_db = lnrouter.ChannelDB(fake_network()) cdb = fake_network.channel_db path_finder = lnrouter.LNPathFinder(cdb)