This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Flaky test - 'reject dial of connection above closeAbove' #250
Labels
help wanted
Seeking public contribution on this issue
need/analysis
Needs further analysis before proceeding
CI sometimes breaks on this test https://github.com/libp2p/js-libp2p-tcp/actions/runs/3971032097/jobs/6814690159
The test is supposed to allow the first 3 connections (socket[1], socket[2], socket[3]). However, the first attempted socket fails to connect as apparently the server is not listening. The server should listen here and this promise resolve only when sockets can connect.
js-libp2p-tcp/test/max-connections-close.spec.ts
Line 28 in 07a03ac
From what I can see in the test, the error message comes from this line. The socket is created here and attempts to connect to the port listened on here, so the
.listen
function may be returning before the socket is fully open? Maybe something OS-specific?The text was updated successfully, but these errors were encountered: