Skip to content

Commit 0493979

Browse files
bitphagexeroc
authored andcommitted
Add test for double connect() call
Reproduces xeroc/python-graphenelib#164
1 parent 6c3d65d commit 0493979

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/testnet/aio/test_bitshares.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,14 @@ async def test_subscribe_to_market(bitshares, assets, default_account):
339339
event_correct = True
340340
break
341341
assert event_correct
342+
343+
344+
@pytest.mark.asyncio
345+
async def test_double_connect(bitshares_testnet):
346+
from bitshares.aio import BitShares
347+
348+
bitshares = BitShares(
349+
node="ws://127.0.0.1:{}".format(bitshares_testnet.service_port), num_retries=-1
350+
)
351+
await bitshares.connect()
352+
await bitshares.connect()

0 commit comments

Comments
 (0)