Tribler / anydex-core

The Universal Decentralized Exchange
GNU Lesser General Public License v3.0
10 stars 6 forks source link

API tests failing #45

Closed devos50 closed 4 years ago

devos50 commented 4 years ago

This API tests are failing with the following stack trace:

======================================================================
ERROR: Test whether an error is returned when we try to cancel an order that has expired
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/.local/lib/python3.7/site-packages/asynctest/case.py", line 297, in run
    self._run_test_method(testMethod)
  File "/home/jenkins/.local/lib/python3.7/site-packages/asynctest/case.py", line 354, in _run_test_method
    self.loop.run_until_complete(result)
  File "/home/jenkins/.local/lib/python3.7/site-packages/asynctest/case.py", line 224, in wrapper
    return method(*args, **kwargs)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/home/jenkins/ci/workspace/AnyDex/test_anydex_linux/anydex/anydex/test/util.py", line 114, in wrapper
    await wait_for(coro(*args, **kwargs), timeout)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/home/jenkins/ci/workspace/AnyDex/test_anydex_linux/anydex/anydex/test/restapi/test_market_endpoints.py", line 214, in test_cancel_order
    json_response = await self.do_request('orders/1/cancel', request_type='POST', expected_code=200)
  File "/home/jenkins/ci/workspace/AnyDex/test_anydex_linux/anydex/anydex/test/restapi/base.py", line 88, in do_request
    async with session.request(request_type, url, data=post_data, headers=headers) as response:
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
    timeout=real_timeout
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
    req, traces, timeout)
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
    raise last_exc
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
    req=req, client_error=client_error)
  File "/home/jenkins/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:49763 ssl:default [Connect call failed ('127.0.0.1', 49763)]

This is most likely the result of the refactoring efforts of the IPv8 REST API.