Fix a test?

This commit is contained in:
Jeffrey Picard 2022-01-21 22:33:05 +00:00
parent 6b5195c78c
commit 806aa9a36f

View file

@ -260,8 +260,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()