mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
9887cd2348
`make test` was crashing on Mac OS due to "too many open files", which could be traced to two different issues. The first one was the disk based storage being opened but not closed in some cases. This change takes the number of open file pointers from >300 to ~30 after the disk based tests have run. The second issue was a fixture HTTP server allowing keep-alive connections, and since each test would call the server on a random port, no connection reuse was possible. Since the test ran over 400 iterations, and the max open file handles on Mac OS by default is 256, things broke. Signed-off-by: Anders Eknert <anders@eknert.com>