Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.16k stars 93 forks source link

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

Open yurivict opened 2 months ago

yurivict commented 2 months ago

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