Skip to content

Instantly share code, notes, and snippets.

@CosminNechifor
Created July 31, 2018 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CosminNechifor/54feaf560849baf39afc2306ddb6edc1 to your computer and use it in GitHub Desktop.
Save CosminNechifor/54feaf560849baf39afc2306ddb6edc1 to your computer and use it in GitHub Desktop.
error
(raiden) ➜ raiden git:(event_api) pytest raiden -xsv -k test_echo_node_response
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /home/cosmin/.virtualenvs/raiden/bin/python3
cachedir: .pytest_cache
rootdir: /home/cosmin/Documents/WORK/GITHUB/raiden, inifile: tox.ini
plugins: timeout-1.2.1, random-0.2, cov-2.5.1, flaky-3.4.0
timeout: 540.0s method: signal
collecting 35 items /home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/grequests.py:21: MonkeyPatchWarning: Patching more than once will result in the union of all True parameters being patched
curious_george.patch_all(thread=False, select=False)
collected 347 items / 346 deselected
raiden/tests/integration/test_echo_node.py::test_echo_node_response[transport_config0-64-18-channels_per_node0-1-4] INFO [07-31|16:48:09.009] Maximum peer count ETH=25 LES=0 total=25
Your new account is locked with a password. Please give a password. Do not forget this password.
!! Unsupported terminal, password will be echoed.
Passphrase:
Repeat passphrase:
Address: {22710aeae8e2689f06ea6b3c8b452c26412d134c}
~~~~~~~~~~~~~~~~~~~~~ Stack of <unknown> (139685897987840) ~~~~~~~~~~~~~~~~~~~~~
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/gevent/threadpool.py", line 270, in _worker
task = task_queue.get()
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/gevent/_threading.py", line 162, in get
self._not_empty.wait()
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/gevent/_threading.py", line 80, in wait
waiter.acquire() # Block on the native lock
~~~~~~~~~~~~~~~~~~~~~ Stack of <unknown> (139686162573120) ~~~~~~~~~~~~~~~~~~~~~
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/gevent/hub.py", line 561, in run
loop.run()
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/pytest_timeout.py", line 110, in handler
timeout_sigalrm(item, timeout)
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/pytest_timeout.py", line 240, in timeout_sigalrm
dump_stacks()
File "/home/cosmin/.virtualenvs/raiden/lib/python3.6/site-packages/pytest_timeout.py", line 299, in dump_stacks
write(''.join(traceback.format_stack(frame)))
FAILED
=================================== FAILURES ===================================
___ test_echo_node_response[transport_config0-64-18-channels_per_node0-1-4] ____
token_addresses = [b'S@)\x7f\x87\xf5\x8b\xfb\xc6>\xd3Q\xb3\x16k_\t?h\x0f']
raiden_chain = [<App 53040842>, <App 79f2d91d>, <App e0efb36e>, <App 96396326>]
network_wait = 5.0
@pytest.mark.parametrize('number_of_nodes', [4])
@pytest.mark.parametrize('number_of_tokens', [1])
@pytest.mark.parametrize('channels_per_node', [CHAIN])
@pytest.mark.parametrize('reveal_timeout', [18])
@pytest.mark.parametrize('settle_timeout', [64])
def test_echo_node_response(token_addresses, raiden_chain, network_wait):
app0, app1, app2, echo_app = raiden_chain
address_to_app = {app.raiden.address: app for app in raiden_chain}
token_address = token_addresses[0]
echo_api = RaidenAPI(echo_app.raiden)
echo_node = EchoNode(echo_api, token_address)
echo_node.ready.wait(timeout=30)
assert echo_node.ready.is_set()
expected = list()
# Create some transfers
for num, app in enumerate([app0, app1, app2]):
amount = 1 + num
transfer_event = RaidenAPI(app.raiden).transfer_async(
app.raiden.default_registry.address,
token_address,
amount,
echo_app.raiden.address,
10 ** (num + 1),
)
transfer_event.wait(timeout=20)
expected.append(amount)
while echo_node.num_handled_transfers < len(expected):
> gevent.sleep(.5)
raiden/tests/integration/test_echo_node.py:98:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../.virtualenvs/raiden/lib/python3.6/site-packages/gevent/hub.py:155: in sleep
hub.wait(t)
src/gevent/_hub_primitives.py:46: in gevent.__hub_primitives.WaitOperationsGreenlet.wait
???
src/gevent/_hub_primitives.py:55: in gevent.__hub_primitives.WaitOperationsGreenlet.wait
???
src/gevent/_waiter.py:152: in gevent.__waiter.Waiter.get
???
src/gevent/_greenlet_primitives.py:59: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
src/gevent/_greenlet_primitives.py:59: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
src/gevent/_greenlet_primitives.py:63: in gevent.__greenlet_primitives.SwitchOutGreenletWithLoop.switch
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E Failed: Timeout >540.0s
src/gevent/__greenlet_primitives.pxd:35: Failed
===Flaky Test Report===
===End Flaky Test Report===
================== 1 failed, 346 deselected in 543.34 seconds ==================
(raiden) ➜ raiden git:(event_api) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment