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

Test test_gigachannel_manager_component randomly fails on Window machine #6709

Closed
drew2a opened this issue Jan 5, 2022 · 1 comment · Fixed by #6799
Closed

Test test_gigachannel_manager_component randomly fails on Window machine #6709

drew2a opened this issue Jan 5, 2022 · 1 comment · Fixed by #6799

Comments

@drew2a
Copy link
Contributor

drew2a commented Jan 5, 2022

Error Message
OSError: [Errno 10048] error while attempting to bind on address ('127.0.0.1', 59334): only one usage of each socket address (protocol/network address/port) is normally permitted
Stacktrace
tribler_config = TriblerConfig(general=GeneralSettings(version='', log_dir='log', version_checker_enabled=True, testnet=False), tunnel_...sponse_size=100, max_channel_query_back=4, push_updates_back_enabled=True), upgrader_enabled=True, gui_test_mode=False)

    @pytest.mark.asyncio
    async def test_gigachannel_manager_component(tribler_config):
        components = [Ipv8Component(), TagComponent(), SocksServersComponent(), KeyComponent(),
                      MetadataStoreComponent(),
                      LibtorrentComponent(), GigachannelManagerComponent()]
        session = Session(tribler_config, components)
        with session:
            comp = GigachannelManagerComponent.instance()
>           await session.start()

src\tribler-core\tribler_core\components\gigachannel_manager\tests\test_gigachannel_manager_component.py:23: 

This error occurred here: #6702
Full error's text: https://jenkins-ci.tribler.org/job/GH_Tribler_PR_Tests/job/PR_win64_pytest/2891/testReport/junit/src.tribler-core.tribler_core.components.gigachannel_manager.tests/test_gigachannel_manager_component/test_gigachannel_manager_component/

@drew2a drew2a changed the title Test test_gigachannel_manager_component randomly falls on Window machine Test test_gigachannel_manager_component randomly fails on Window machine Jan 5, 2022
@devos50
Copy link
Contributor

devos50 commented Jan 5, 2022

This error seems to happen because Tribler wants to use a port already in use. I don't think our port usage between different/parallel runs is mutually exclusive, so there is a chance that this happens.

@drew2a drew2a self-assigned this Mar 3, 2022
@drew2a drew2a added this to the 7.12.0 January milestone Mar 3, 2022
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