From a319595f37bb56103b705852ee2a0870d45ebc80 Mon Sep 17 00:00:00 2001 From: Jeffrey Picard Date: Fri, 21 Jan 2022 22:33:05 +0000 Subject: [PATCH] Fix a test? --- tests/integration/transactions/test_transactions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/transactions/test_transactions.py b/tests/integration/transactions/test_transactions.py index 9fc00b5eb..9e3b49056 100644 --- a/tests/integration/transactions/test_transactions.py +++ b/tests/integration/transactions/test_transactions.py @@ -259,8 +259,12 @@ class BasicTransactionTests(IntegrationTestCase): async def broadcast(tx): try: return await real_broadcast(tx) - except lbry.wallet.rpc.jsonrpc.RPCError: - pass + except lbry.wallet.rpc.jsonrpc.RPCError as err: + # this is expected in tests where we try to double spend. + if 'the transaction was rejected by network rules.' in str(err): + pass + else: + raise err finally: e.set()