Depending on the OS, the file descriptor limit may be hit when running teos tests.
This is, in part, due to the tests in the watchtower-plugin that use httpmock::MockServer which spawns up to 25 servers when running the test suite. The issue can be patched in many ways, such as:
Increasing the fd limit using ulimit -n
Running the tests using a smaller HTTPMOCK_MAX_SERVERS (e.g.: HTTPMOCK_MAX_SERVERS=10)
...
In my personal case, I've gone for the first option, given that macOS has pretty default maxfiles (i.e. 256). This will become an issue if the fd limit is hit in other systems, like what happened with #119. We may like to consider an alternative option or even replace httpmock::MockServer with another mocking solution.
Depending on the OS, the file descriptor limit may be hit when running
teos
tests.This is, in part, due to the tests in the
watchtower-plugin
that usehttpmock::MockServer
which spawns up to 25 servers when running the test suite. The issue can be patched in many ways, such as:ulimit -n
HTTPMOCK_MAX_SERVERS
(e.g.:HTTPMOCK_MAX_SERVERS=10
)In my personal case, I've gone for the first option, given that
macOS
has pretty default maxfiles (i.e. 256). This will become an issue if the fd limit is hit in other systems, like what happened with #119. We may like to consider an alternative option or even replacehttpmock::MockServer
with another mocking solution.