[Flaky Test]: <TestConnInfoConnCloseThenAnotherConn> – failed to start connection credentials listener: listen unix ...: bind: invalid argument
#6977
Labels
Failing test case
TestConnInfoConnCloseThenAnotherConn
Error message
Build
Local run of the tests
OS
Linux, Mac
Stacktrace and notes
This test is failing because the test creates a unix socket on a path that can exceed the maximum size for the OS.
man unix
on darwin says:On the listed example the path is 111 characters long.
The issue can also affect Linux:
The test usually passes on Linux because the generated path is < 100 characters. E.g:
/tmp/TestConnInfoConnCloseThenAnotherConn233963498/001/.teaci.sock
The problem comes from the
getAddress
called byrunTests
function that generates the address for the sockets without doing any length validation.elastic-agent/pkg/component/runtime/conn_info_server_test.go
Lines 77 to 91 in c1d42ae
elastic-agent/pkg/component/runtime/conn_info_server_test.go
Lines 93 to 115 in c1d42ae
The text was updated successfully, but these errors were encountered: