Skip to content

Commit ac8b3ed

Browse files
committed
doc: move the ulimit fix to the README file
1 parent 1ace364 commit ac8b3ed

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ Check the Justfile for the commands to run the project.
1212
- [ ] Add validation on the incoming token, we are currently passing the raw user input straight into a query (thanks sqlx for protecting us from SQL injections <3);
1313
- [ ] Use a proper templating solution for our emails (e.g. tera);
1414
- [ ] Anything that comes to your mind!
15+
16+
17+
## Troubleshooting
18+
19+
### Too many open files when running tests
20+
21+
On MacOS, you may encounter the error `Too many open files` when running tests. This is because the default limit of open file descriptors is too low. You can increase the limit by running the following command:
22+
23+
```sh
24+
ulimit -n 2048
25+
```
26+
27+
Reference: https://github.com/WeareJH/config-gen/issues/44

justfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,3 @@ migrate-do dbconnection:
8989
## Update sqlx offline mode
9090
sqlx-prepare:
9191
cargo sqlx prepare --workspace
92-
93-
## MacOS - fix ulimit
94-
# https://github.com/WeareJH/config-gen/issues/44
95-
fix-ulimit:
96-
ulimit -n 2048

0 commit comments

Comments
 (0)