Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] EVA unit test fails randomly on Mac #6327

Closed
ichorid opened this issue Sep 20, 2021 · 1 comment · Fixed by #6332
Closed

[main] EVA unit test fails randomly on Mac #6327

ichorid opened this issue Sep 20, 2021 · 1 comment · Fixed by #6332
Assignees

Comments

@ichorid
Copy link
Contributor

ichorid commented Sep 20, 2021

https://jenkins-ci.tribler.org/job/GH_Tribler_PR_Tests/job/PR_mac_pytest/1840/testReport/junit/src.tribler-core.tribler_core.modules.remote_query_community.tests.test_eva_protocol/TestEVA/test_one_megabyte_transfer/

Error Message

TypeError: 'NoneType' object is not subscriptable

Stacktrace

self = <test_eva_protocol.TestEVA testMethod=test_one_megabyte_transfer>

    @pytest.mark.timeout(15)
    async def test_one_megabyte_transfer(self):
        data_size = 1024 * 1024
        data = os.urandom(1), os.urandom(data_size), random.randrange(0, 256)
    
        self.overlay(0).eva_send_binary(self.peer(1), *data)
    
        await drain_loop(asyncio.get_event_loop())
    
>       assert len(self.overlay(1).most_recent_received_data[1]) == data_size
E       TypeError: 'NoneType' object is not subscriptable

src/tribler-core/tribler_core/modules/remote_query_community/tests/test_eva_protocol.py:137: TypeError
@ichorid ichorid added this to the 7.11.0 September milestone Sep 20, 2021
@drew2a drew2a self-assigned this Sep 20, 2021
@drew2a
Copy link
Contributor

drew2a commented Sep 20, 2021

This could be related to: https://jenkins-ci.tribler.org/job/GH_Tribler_PR_Tests/job/PR_mac_pytest/1845/console

_______________ TestEVA.test_wrong_message_order_and_wrong_nonce _______________
[gw6] darwin -- Python 3.8.4 /usr/local/opt/python@3.8/bin/python3.8
/usr/local/lib/python3.8/site-packages/asynctest/case.py:297: in run
    self._run_test_method(testMethod)
/usr/local/lib/python3.8/site-packages/asynctest/case.py:354: in _run_test_method
    self.loop.run_until_complete(result)
/usr/local/lib/python3.8/site-packages/asynctest/case.py:224: in wrapper
    return method(*args, **kwargs)
/usr/local/Cellar/python@3.8/3.8.4/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py:603: in run_until_complete
    self.run_forever()
/usr/local/lib/python3.8/site-packages/asynctest/case.py:224: in wrapper
    return method(*args, **kwargs)
/usr/local/Cellar/python@3.8/3.8.4/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py:570: in run_forever
    self._run_once()
/usr/local/Cellar/python@3.8/3.8.4/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py:1823: in _run_once
    event_list = self._selector.select(timeout)
/usr/local/lib/python3.8/site-packages/asynctest/selector.py:299: in select
    return self._selector.select(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selectors.KqueueSelector object at 0x13542f310>
timeout = 0.009756768999992005

    def select(self, timeout=None):
        timeout = None if timeout is None else max(timeout, 0)
        max_ev = len(self._fd_to_key)
        ready = []
        try:
>           kev_list = self._selector.control(None, max_ev, timeout)
E           Failed: Timeout >10.0s

/usr/local/Cellar/python@3.8/3.8.4/Frameworks/Python.framework/Versions/3.8/lib/python3.8/selectors.py:558: Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants