I have tests which share common resource and can't be executed concurrently. So tests fail with cargo test, but work with RUST_TEST_THREADS=1 cargo test.
I can modify tests to wait on global mutex, but I don't want to clutter them if there is any simpler way to force cargo set this environment variable for me.
Aucun commentaire:
Enregistrer un commentaire