# Problem When running `cargo test` in threaded mode random tests fail with: `libc::EDQUOT` ie `Some("Disk quota exceeded")` It would be good to put a note about this somewhere (or maybe read maxkeys and warn on it?) # Verison Tested on this revision on master: e4b35b614af249bf1fbec7a9d2c0a662009c2b01 # Environment Ubuntu 20.04 under WSL2 on Windows 11. The machine reports 12 procs. ```bash $ nproc 12 ``` # Cause and 'fix' The cause is the default user quota is too small. This is the default ```bash $ cat /proc/sys/kernel/keys/maxkeys 200 ``` One way to fix it is ```bash echo 1000 | sudo tee /proc/sys/kernel/keys/maxkeys ```` The other way is to limit the threads cargo runs - but I had to set it to 1 to work. Even with 2 random tests failed. ```bash cargo test --test-threads=1 ```