forked from LBRYCommunity/lbry-sdk
Fix a test?
This commit is contained in:
parent
6b5195c78c
commit
806aa9a36f
1 changed files with 6 additions and 2 deletions
|
@ -260,8 +260,12 @@ class BasicTransactionTests(IntegrationTestCase):
|
||||||
async def broadcast(tx):
|
async def broadcast(tx):
|
||||||
try:
|
try:
|
||||||
return await real_broadcast(tx)
|
return await real_broadcast(tx)
|
||||||
# except lbry.wallet.rpc.jsonrpc.RPCError:
|
except lbry.wallet.rpc.jsonrpc.RPCError as err:
|
||||||
# pass
|
# 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:
|
finally:
|
||||||
e.set()
|
e.set()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue