-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Too many open files" error when running teos tests #119
Comments
Can you try to limit the number of test jobs run by cargo and see if this resolves it: cargo test -j 1 |
Unfortunately I am getting the same result with no concurent jobs. BTW: For me, the value of |
I will try. Update1: Update2: |
@seberm I can reproduce too. Will look into this. |
Ok, I found what is causing the issue, but I haven't found a way to fix it yet. Turns out this is happening due to our Why does this consume more than a thousand fds I'm not sure. I guess the alternatives are either re-design the mock so it does not use a real |
Because these servers are only started and never cleaned up during runtime. (The thread produced in |
Ohhhhh. I didn't catch that! Really appreciated @erikarvstedt 😄 |
Wraps `CloseHandle` inside `BitcoindStopper` and implements `Drop` for the latter so the server does not need to be manually stopped
Hello,
when I am running
teos
tests, I am hitting the standard soft limit of1024
file descriptors (NOFILE
).Do you really need to exceed this limit or is this just a resource leak which needs a fix?
Due to this problem, we are unable to run teos tests in nix-bitcoin:
Thanks.
CC: @meryacine , @erikarvstedt
Reproducer:
The text was updated successfully, but these errors were encountered: