mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Event stream test failing (#2262)
Solution: Extend the wait time for Tendermint to start
This commit is contained in:
parent
b408b57eda
commit
63635f12fc
@ -567,7 +567,7 @@ def abci_http(_setup_database, _configure_bigchaindb, abci_server,
|
|||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
|
|
||||||
for i in range(5):
|
for i in range(300):
|
||||||
try:
|
try:
|
||||||
uri = 'http://{}:{}/abci_info'.format(tendermint_host, tendermint_port)
|
uri = 'http://{}:{}/abci_info'.format(tendermint_host, tendermint_port)
|
||||||
requests.get(uri)
|
requests.get(uri)
|
||||||
|
@ -77,8 +77,8 @@ def test_process_unknown_event():
|
|||||||
assert event_queue.empty()
|
assert event_queue.empty()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.abci
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.abci
|
||||||
async def test_subscribe_events(tendermint_ws_url, b):
|
async def test_subscribe_events(tendermint_ws_url, b):
|
||||||
from bigchaindb.tendermint.event_stream import subscribe_events
|
from bigchaindb.tendermint.event_stream import subscribe_events
|
||||||
from bigchaindb.common.crypto import generate_key_pair
|
from bigchaindb.common.crypto import generate_key_pair
|
||||||
|
Loading…
x
Reference in New Issue
Block a user