From 63cef81015707c883b7e6f836d51935272225dad Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 8 Apr 2022 13:22:51 -0400 Subject: [PATCH] fix scribe server version test --- tests/integration/blockchain/test_network.py | 7 ++++--- .../integration/blockchain/test_wallet_server_sessions.py | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/blockchain/test_network.py b/tests/integration/blockchain/test_network.py index 0b9fcac68..230110596 100644 --- a/tests/integration/blockchain/test_network.py +++ b/tests/integration/blockchain/test_network.py @@ -3,9 +3,10 @@ import scribe from unittest.mock import Mock -from scribe.blockchain.network import LBCRegTest +from scribe.hub import HUB_PROTOCOL_VERSION from scribe.hub.udp import StatusServer from scribe.hub.session import LBRYElectrumX +from scribe.blockchain.network import LBCRegTest from lbry.wallet.network import Network from lbry.wallet.orchstr8 import Conductor @@ -35,7 +36,7 @@ class NetworkTests(IntegrationTestCase): 'payment_address': '', 'donation_address': '', 'daily_fee': '0', - 'server_version': scribe.__version__, + 'server_version': HUB_PROTOCOL_VERSION, 'trending_algorithm': 'fast_ar', }, await self.ledger.network.get_server_features()) # await self.conductor.spv_node.stop() @@ -65,7 +66,7 @@ class NetworkTests(IntegrationTestCase): 'payment_address': payment_address, 'donation_address': donation_address, 'daily_fee': '42', - 'server_version': scribe.__version__, + 'server_version': HUB_PROTOCOL_VERSION, 'trending_algorithm': 'fast_ar', }, await self.ledger.network.get_server_features()) diff --git a/tests/integration/blockchain/test_wallet_server_sessions.py b/tests/integration/blockchain/test_wallet_server_sessions.py index 176db4494..d09c398f7 100644 --- a/tests/integration/blockchain/test_wallet_server_sessions.py +++ b/tests/integration/blockchain/test_wallet_server_sessions.py @@ -1,6 +1,5 @@ import asyncio -import scribe from scribe.hub import HUB_PROTOCOL_VERSION from scribe.hub.session import LBRYElectrumX