Closed alanning closed 10 years ago
This is caused by a change in behavior by the wrench
package. In wrench 1.5 the default behavior changed to not delete a directory if its not empty.
Can see this in action by manually setting the wrench version between 1.5.4 and 1.3.9 in Meteorite's package.json
file.
Reverting to wrench 1.3.9 fixes the issue. PR coming soon.
FYI, opened a ticket on wrench repo since there is no way to override the behavior in latest wrench: https://github.com/ryanmcgrath/wrench-js/issues/71
I'm still seeing this every once in a while. Since its an intermittent issue, i'd say its a timing thing.
I tried replacing wrench with rifraf, another rm -f
implementation and I still saw the error.
So that leads me to believe it is because some part of the meteor process (or mongo) has not finished yet and still has open files in the .meteor/local
folder so that is causing the rm -f
to fail.
I don't see the error anymore if I make the test_spec.js script retry the deletion a few times. Its nasty but it seems to work.
What do you think?
We should be killing the meteor process properly but maybe we aren't quite getting it.
I'm not too stressed if the tests are hacky as long as they usually work and actually test what they are supposed to :)
I get the following error when running tests on a new VM with clean clone of Meteorite: