Skip to content

Many tests fail: bind: Address already in use #223

@yurivict

Description

@yurivict

I replaced the port 8086 with 23987 in the code, but tests still fail like this:

221/659 Testing: sync_chain::fixed_size_chain_with_rejection (no_user_data)
221/659 Test: sync_chain::fixed_size_chain_with_rejection (no_user_data)
Command: "/usr/ports/www/restinio/work/.build/bin/_unit.test.handle_requests.sync_chained_handlers" "sync_chain::fixed_size_chain_with_rejection (no_user_data)"
Directory: /usr/ports/www/restinio/work/.build/test/handle_requests/sync_chained_handlers
"sync_chain::fixed_size_chain_with_rejection (no_user_data)" start time: Aug 24 22:09 PDT
Output:
----------------------------------------------------------
^[[1;33mFilters: "sync_chain::fixed_size_chain_with_rejection (no_user_data)"
^[[0mRandomness seeded to: 632557483
[2024-08-24 22:09:33.270] TRACE: starting server on 127.0.0.1:23987
[2024-08-24 22:09:33.270] ERROR: failed to start server on 126.0.0.1:23987: bind: Address already in use
245/659 Testing: async_chain::so_5::fixed_size_chain (no_user_data)
245/659 Test: async_chain::so_5::fixed_size_chain (no_user_data)
Command: "/usr/ports/www/restinio/work/.build/bin/_unit.test.handle_requests.async_chained_handlers_2" "async_chain::so_5::fixed_size_chain (no_user_data)"
Directory: /usr/ports/www/restinio/work/.build/test/handle_requests/async_chained_handlers_2
"async_chain::so_5::fixed_size_chain (no_user_data)" start time: Aug 24 22:09 PDT
Output:
----------------------------------------------------------
^[[1;33mFilters: "async_chain::so_5::fixed_size_chain (no_user_data)"
^[[0mRandomness seeded to: 866360695
[2024-08-24 22:09:33.359] TRACE: starting server on 127.0.0.1:23987
[2024-08-24 22:09:33.359] ERROR: failed to start server on 127.0.0.1:23987: bind: Address already in use

Version: 0.7.2
FreeBSD 14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions